{"cve":"CVE-2025-11844","nvd":{"published":"2025-10-22T14:15:49.457","modified":"2026-10-08T11:10:00.250","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4},"cwes":["CWE-643"],"references":["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"],"products":["huggingface:smolagents"],"source":"nvd","synced_at":"2026-10-19T22:12:35.277909958+00:00"},"epss":{"cve":"CVE-2025-11844","score":0.0028,"percentile":0.20307,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-8mf9-rmgw-33qc","url":"https://osv.dev/vulnerability/GHSA-8mf9-rmgw-33qc","summary":"Hugging Face Smolagents XPath injection vulnerability in the search_item_ctrl_f function","modified":"2026-07-07T17:56:39.648577888Z","packages":[{"ecosystem":"PyPI","name":"smolagents","purl":"pkg:pypi/smolagents","ranges":["<1.22.0"],"fixed":["1.22.0"]}]},{"id":"PYSEC-2026-1930","url":"https://osv.dev/vulnerability/PYSEC-2026-1930","summary":"Hugging Face Smolagents XPath injection vulnerability in the search_item_ctrl_f function","modified":"2026-07-07T17:47:54.122036475Z","packages":[{"ecosystem":"PyPI","name":"smolagents","purl":"pkg:pypi/smolagents","ranges":["<1.22.0"],"fixed":["1.22.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}