CVE-2025-11844: huggingface/smolagents · Improper Neutralization of Data within XPath Expressions
Affects huggingface/smolagentsSource CVE Database V5
Not known to be exploited · CVSS 5.4 Medium : upgrade to 1.22.0 when convenient.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 20% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.22.0
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 22 Oct 2025
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
Upgrade huggingface/smolagents to 1.22.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubhuggingface/smolagentspkg:github/huggingface/smolagentsOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate this vulnerability, European organizations should immediately upgrade Hugging Face Smolagents to version 1.22.0 or later, where the issue is fixed. In addition to patching, developers should implement strict input validation and sanitization routines for any user-supplied data incorporated into XPath queries, employing parameterized XPath queries or safe XPath libraries that prevent injection. Conduct thorough code reviews focusing on XPath query construction and test for injection vectors. Employ runtime monitoring to detect anomalous XPath query patterns that may indicate exploitation attempts. For organizations integrating Smolagents into larger systems, isolate the component to limit potential impact and apply the principle of least privilege to reduce data exposure. Finally, maintain an updated inventory of affected software versions and ensure rapid deployment of security updates.
Description
CVE-2025-11844 is an XPath injection vulnerability in Hugging Face's Smolagents version 1.20.0, specifically in the search_item_ctrl_f function. The vulnerability arises from unsanitized user input being directly concatenated into XPath queries, allowing attackers to manipulate query logic. Exploitation can bypass search filters, access unintended DOM elements, and disrupt automated web tasks, potentially leading to information disclosure and manipulation of AI agent interactions. The flaw is fixed in version 1.22.0. The CVSS score is 5.4 (medium severity), with no known exploits in the wild.