Hugging Face Smolagents has a Server-Side Request Forgery issue
CVE-2026-2654 · GHSA-jxgv-6j54-wwc7 · published 2026-02-18 · updated 2026-05-07
- Severity
- Low
- CVSS score
- 6.3
- Chance of exploitation (EPSS)
- 0.42%
- Fixed in
- No fix yet
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
A weakness has been identified in huggingface smolagents 1.24.0. Impacted is the function requests.get/requests.post of the component LocalPythonExecutor. Executing a manipulation can lead to server-side request forgery. It is possible to launch the attack remotely. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
No fixed release is listed yet for smolagents. Follow the source advisory for updates, and until one ships:
General guidance from ShieldPi, not a vendor fix
- Server-side request forgery. Restrict its outbound network access to the hosts it needs, and keep internal addresses and cloud metadata endpoints out of its reach.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| smolagents | PyPI | <= 1.24.0 | No fix yet |
- CriticalMLflow: Unauthenticated full-read SSRF in webhook delivery: _validate_webhook_url bypassed via unvalidated HTTP redirects (and DNS rebindingmlflowExploited
- Critical@zereight/mcp-gitlab Vulnerable to Server-Side Request Forgery@zereight/mcp-gitlab
- CriticalSSRF + LLM API key exfiltration via user-controlled basepath / baseUrl in 8 chat-model nodesflowise, flowise-components
- CriticalLocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLsgithub.com/mudler/LocalAI
- CriticalFastMCP OpenAPI Provider has an SSRF & Path Traversal Vulnerabilityfastmcp
- CriticalBentoML SSRF Vulnerability in File Upload Processingbentoml
- CriticalHugging Face smolagents: Unsafe deserialization in Remote Python Executor leads to RCEsmolagents
- Criticalsmolagents has Sandbox Escape Vulnerability in the local_python_executor.py Modulesmolagents
- MediumHugging Face Smolagents XPath injection vulnerability in the search_item_ctrl_f functionsmolagents
- LowHugging Face Smolagents has an Injection issuesmolagents
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.