CVE-2025-11844
published medium CVSS 3.0 · 5.4XPath Injection in Hugging Face Smolagents search_item_ctrl_f Function
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| huggingface | — | huggingface/smolagentsunspecified to < 1.22.0 | Affected | Not stated | @huntr_ai |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 5.4 / 10
- Severity
- medium
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| huggingface | huggingface/smolagents | unspecified to < 1.22.0 (affected · custom) | @huntr_ai · cna |
Weaknesses
1- CWE-643 CWE-643 Improper Neutralization of Data within XPath Expressions
References
2Provider assertions
2@huntr_ai · cna
XPath Injection in Hugging Face Smolagents search_item_ctrl_f Function
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 64d7c9a225ea48c8eb4e3e2343c4bcefb1ff92a15bc03f881cc3011d15b1b080
- Ingested
- 23 Sep 2026, 08:36:37 UTC
- Source record
- Official CVE record