XPath Injection in Hugging Face Smolagents search_item_ctrl_f Function
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| huggingface | huggingface/smolagents | affected |
|
No data.
| Vendor | Product | Versions |
|---|---|---|
| Huggingface | Smolagents | — |
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-8mf9-rmgw-33qc | Hugging Face Smolagents XPath injection vulnerability in the search_item_ctrl_f function |
No CVSS v4.0
No CVSS v3.1
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.280% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:2.3:a:huggingface:smolagents:*:*:*:*:*:*:*:* |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Huggingface
Huggingface smolagents |
|
| Vendors & Products |
Huggingface
Huggingface smolagents |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | XPath Injection in Hugging Face Smolagents search_item_ctrl_f Function | |
| Weaknesses | CWE-643 | |
| References |
| |
| Metrics |
cvssV3_0
|