# CVE-2025-11844: XPath Injection in Hugging Face Smolagents search_item_ctrl_f Function

> CVE-2025-11844: XPath Injection in Hugging Face Smolagents search_item_ctrl_f Function. CVSS 5.4 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2025-11844
Last updated: 2026-10-08T11:10:00Z

- Published: 2025-10-22 13:13 UTC · Updated: 2026-10-08 11:10 UTC · Assigner: @huntr\_ai
- CVSS: 5.4 (CVSS 3.1) · Severity: Medium · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- EPSS: 0.28%, 20th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-643

## 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.

## Affected vendors and products

- huggingface: huggingface/smolagents

## Tracked companies

- [Hugging Face](https://rewindex.com/company/hugging-face.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2025-11844)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2025-11844)
- [https://github.com/huggingface/smolagents/commit/f570ed5e17999d4cf7d5e79c2830fbaefab8a794](https://github.com/huggingface/smolagents/commit/f570ed5e17999d4cf7d5e79c2830fbaefab8a794)
- [https://huntr.com/bounties/01ab4405-9bca-4b26-b7a3-5ca1863a69b4](https://huntr.com/bounties/01ab4405-9bca-4b26-b7a3-5ca1863a69b4)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2025-11844 · Markdown: https://rewindex.com/cve/CVE-2025-11844.md · JSON: https://rewindex.com/api/v1/cves/CVE-2025-11844 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:15:40.006Z
