CVE-2025-11844 Details
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.
A XPath injection vulnerability has been identified in Hugging Face Smolagents version 1.20.0. The issue resides in the 'search_item_ctrl_f' function within 'src/smolagents/vision_web_browser.py'. This vulnerability allows attackers to manipulate XPath queries by injecting malicious syntax, bypassing search filters, accessing unintended DOM elements, and disrupting web automation workflows. Such exploitation could lead to unauthorized information disclosure, manipulation of AI agent interactions, and a general compromise of automated web tasks.
Users are advised to update to Hugging Face Smolagents version 1.22.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 22, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://huntr.com/bounties/01ab4405-9bca-4b26-b7a3-5ca1863a69b4 | CISA-ADP | ExploitThird Party Advisory |
| https://github.com/huggingface/smolagents/commit/f570ed5e17999d4cf7d5e79c2830fbaefab8a794 | [email protected] | Patch |
| https://huntr.com/bounties/01ab4405-9bca-4b26-b7a3-5ca1863a69b4 | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-643 | Improper Neutralization of Data within XPath Expressions ('XPath Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| huggingface smolagents | >= 1.20.0, < 1.22.0 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 8, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 30, 2025 | Initial Analysis | [email protected] |
| Oct 22, 2025 | New CVE Received | [email protected] |
| Oct 22, 2025 | CVE Modified | CISA-ADP |