CVE-2026-2654: huggingface smolagents · Server-Side Request Forgery
Affects huggingface smolagentsSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 37% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:PExploitation evidence
Disclosed: evidence found.
CVE published 18 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| huggingfacesmolagents | Affected
| Fixed in– |
CPE configurations (1)
cpe:2.3:a:huggingface:smolagents:*:*:*:*:*:*:*:*
AI-suggested
2) Employ strict input validation and sanitization on any user-controllable inputs that influence requests.get or requests.post calls within LocalPythonExecutor, ensuring only safe URLs or domains are allowed. 3) Use application-layer proxies or request allowlists to prevent requests to internal IP ranges (e.g., 127.0.0.1, 10.0.0.0/8, 192.168.0.0/16) or cloud metadata service IPs. 4) Monitor logs for unusual outbound HTTP requests originating from smolagents components to detect potential exploitation attempts. 5) Consider isolating smolagents workloads in containerized or sandboxed environments with minimal network privileges. 6) Stay alert for vendor updates or community patches and apply them promptly once available. 7) If feasible, upgrade to a non-vulnerable version of smolagents once released. These targeted mitigations go beyond generic advice by focusing on network controls, input validation, and monitoring specific to the SSRF context in smolagents.
Description
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.