CVE-2025-11844: XPath Injection in Hugging Face Smolagents search_item_ctrl_f Function
Vulnerability summary
CVE-2025-11844 is a medium (CVSS 5.4) vulnerability in huggingface huggingface/smolagents. EPSS estimates a 0.28% chance of exploitation in the next 30 days, higher than 20.5% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 22-10-2025PublishedVulnerability first disclosed.
- 22-10-2025Last modifiedVulnerability information updated.
Description
Hugging Face Smolagents version 1.20.0 contains an XPath injection vulnerability in the search_item_ctrl_f function located in src/smolagents/vision_web_browser.py. The function constructs an XPath query by directly concatenating user-supplied input into the XPath expression without proper sanitization or escaping. This allows an attacker to inject malicious XPath syntax that can alter the intended query logic. The vulnerability enables attackers to bypass search filters, access unintended DOM elements, and disrupt web automation workflows. This can lead to information disclosure, manipulation of AI agent interactions, and compromise the reliability of automated web tasks. The issue is fixed in version 1.22.0.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · PypiEcosystem advisory · calculated5.4MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- NVDNIST5.4MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
EPSS trend
Probability
0.28%
Chance of exploitation in the next 30 days
Percentile
21%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.28% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (huntr.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Huggingface2 products
- huggingface/smolagents≥ unspecified, < 1.22.0
- smolagents≥ 1.20.0, < 1.22.0
PyPI1 product
- smolagents< 1.22.0
2 vendors · 3 products
References
6 links- pypi.org/project/smolagentsPACKAGE