CVE-2025-11844Huggingface Smolagents
Medium 5.4 No auth needed
Follow: this CVE · Huggingface · Huggingface Smolagents We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.0
- 5.4
- EPSS
- 0.4% probability of exploitation in 30 days · percentile 29
- Auth required
- No
- Published
- Oct 22, 2025
- Updated
- Oct 8, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-643
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Smolagents.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | smolagents |
< 1.22.0 |
1.22.0 |
pip install "smolagents>=1.22.0" |
| PyPI | smolagents |
< 1.22.0 |
1.22.0 |
pip install "smolagents>=1.22.0" |
Per OSV / GitHub Advisories (GHSA-8mf9-rmgw-33qc, PYSEC-2026-1930). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| huggingface | smolagents | ≥ 1.20.0 < 1.22.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- huntr.com Exploit Third Party Advisory