CVE-2025-11844 XPath Injection in Hugging Face Smolagents search_item_ctrl_f Function
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| huggingface smolagents | >= 1.20.0, < 1.22.0 | 1.22.0 | Fixed |
| huggingface/smolagents | < 1.22.0 | 1.22.0 | Fixed |
| pypi smolagents(PyPI) | < 1.22.0; = 0.1.0; = 0.1.2; = 0.1.3 +33 more | 1.22.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi smolagents(PyPI) | < 1.22.0 | 1.22.0 |
| pypi smolagents(PyPI) | = 0.1.0 | No fix listed |
| pypi smolagents(PyPI) | = 0.1.2 | No fix listed |
| pypi smolagents(PyPI) | = 0.1.3 | No fix listed |
| pypi smolagents(PyPI) | = 1.0.0 | No fix listed |
| pypi smolagents(PyPI) | = 1.1.0 | No fix listed |
| pypi smolagents(PyPI) | = 1.10.0 | No fix listed |
| pypi smolagents(PyPI) | = 1.11.0 | No fix listed |
| pypi smolagents(PyPI) | = 1.12.0 | No fix listed |
| pypi smolagents(PyPI) | = 1.13.0 | No fix listed |
| pypi smolagents(PyPI) | = 1.14.0 | No fix listed |
| pypi smolagents(PyPI) | = 1.15.0 | No fix listed |
| pypi smolagents(PyPI) | = 1.16.0 | No fix listed |
| pypi smolagents(PyPI) | = 1.16.1 | No fix listed |
| pypi smolagents(PyPI) | = 1.17.0 | No fix listed |
| pypi smolagents(PyPI) | = 1.18.0 | No fix listed |
| pypi smolagents(PyPI) | = 1.19.0 | No fix listed |
| pypi smolagents(PyPI) | = 1.2.0 | No fix listed |
| pypi smolagents(PyPI) | = 1.2.1 | No fix listed |
| pypi smolagents(PyPI) | = 1.2.2 | No fix listed |
| pypi smolagents(PyPI) | = 1.20.0 | No fix listed |
| pypi smolagents(PyPI) | = 1.21.0 | No fix listed |
| pypi smolagents(PyPI) | = 1.21.1 | No fix listed |
| pypi smolagents(PyPI) | = 1.21.2 | No fix listed |
| pypi smolagents(PyPI) | = 1.21.3 | No fix listed |
Show 14 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi smolagents(PyPI) | = 1.3.0 | No fix listed |
| pypi smolagents(PyPI) | = 1.4.0 | No fix listed |
| pypi smolagents(PyPI) | = 1.4.1 | No fix listed |
| pypi smolagents(PyPI) | = 1.5.0 | No fix listed |
| pypi smolagents(PyPI) | = 1.5.1 | No fix listed |
| pypi smolagents(PyPI) | = 1.6.0 | No fix listed |
| pypi smolagents(PyPI) | = 1.7.0 | No fix listed |
| pypi smolagents(PyPI) | = 1.8.0 | No fix listed |
| pypi smolagents(PyPI) | = 1.8.1 | No fix listed |
| pypi smolagents(PyPI) | = 1.9.0 | No fix listed |
| pypi smolagents(PyPI) | = 1.9.1 | No fix listed |
| pypi smolagents(PyPI) | = 1.9.2 | No fix listed |
| huggingface/smolagents | < 1.22.0 | 1.22.0 |
| huggingface smolagents | >= 1.20.0, < 1.22.0 | 1.22.0 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com product
- huntr.com exploit third-party-advisory
- pypi.org product
- github.com vendor-advisory