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

- Severity: Medium 5.4 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 22% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-10-22T13:13:55.882Z
- Modified: 2026-10-08T11:10:00.250Z
- Also known as: GHSA-8mf9-rmgw-33qc, PYSEC-2026-1930
- Weaknesses: CWE-643
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @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.

(As written by CVE List.)

## Affected

- huggingface huggingface/smolagents: from unspecified before 1.22.0
- smolagents (PyPI): before 1.22.0
- huggingface smolagents: from 1.20.0 before 1.22.0

## Every score

- @huntr_ai: CVSS:3.0 5.4 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.0 5.4 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.0 5.4 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`

## References

- <https://huntr.com/bounties/01ab4405-9bca-4b26-b7a3-5ca1863a69b4> (exploit, third-party-advisory, web)
- <https://github.com/huggingface/smolagents/commit/f570ed5e17999d4cf7d5e79c2830fbaefab8a794> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-11844> (advisory)
- <https://github.com/huggingface/smolagents> (package)
- <https://pypi.org/project/smolagents> (package)
- <https://github.com/advisories/GHSA-8mf9-rmgw-33qc> (advisory)

## Sources

- CVE List: [CVE-2025-11844](https://www.cve.org/CVERecord?id=CVE-2025-11844), CVE Terms of Use, modified 2025-10-22
- GitHub Advisory Database: [GHSA-8mf9-rmgw-33qc](https://github.com/advisories/GHSA-8mf9-rmgw-33qc), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-11844](https://nvd.nist.gov/vuln/detail/CVE-2025-11844), Public domain, modified 2026-10-08
- PyPA Advisory Database: [PYSEC-2026-1930](https://osv.dev/vulnerability/PYSEC-2026-1930), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-11844 · Whole record: https://cve.day/CVE-2025-11844.json · Rebuilt by cve.day 2026-11-25T22:59:06.658Z
