CVE-2025-11844 in Huggingface Smolagents
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. ...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Huggingface | Smolagents | ≥ 1.20.0, < 1.22.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-11844 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-230397-M |
| CVSS vector | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| Published | 2025-10-22 |
| Last modified | 2026-10-08 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-643: CWE-643
Analysis AI-written, not human-reviewed
Hugging Face Smolagents version 1.20.0 contains an XPath injection vulnerability in the search_item_ctrl_f function, which can be exploited by an attacker to inject malicious XPath syntax.
The vulnerability arises from the direct concatenation of user-supplied input into the XPath expression without proper sanitization or escaping in the search_item_ctrl_f function located in src/smolagents/vision_web_browser.py.
Questions
What is CVE-2025-11844?
Hugging Face Smolagents version 1.20.0 contains an XPath injection vulnerability in the search_item_ctrl_f function, which can be exploited by an attacker to inject malicious XPath syntax.
What is the CVSS score for CVE-2025-11844?
CVE-2025-11844 has CVSS 5.4 (Medium). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N. EPSS: 0.4%.
Is CVE-2025-11844 actively exploited?
No confirmed active exploitation of CVE-2025-11844 as of 2026-10-10.
How do I remediate CVE-2025-11844?
Priority: MEDIUM.
What systems are affected by CVE-2025-11844?
CVE-2025-11844 affects Huggingface Smolagents.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Huggingface","product":"Smolagents","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-08.