{"id":"CVE-2025-11844","published":"2025-10-22T13:13:55Z","modified":"2025-10-22T14:09:51Z","title":"XPath Injection in Hugging Face Smolagents search_item_ctrl_f Function","vendor":"huggingface","product":"huggingface/smolagents","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00429,"percentile":0.28886,"provenance":"source"},"cwes":[{"id":"CWE-643","name":"Improper Neutralization of Data within XPath Expressions"}],"references":[{"url":"https://huntr.com/bounties/01ab4405-9bca-4b26-b7a3-5ca1863a69b4","tags":[]},{"url":"https://github.com/huggingface/smolagents/commit/f570ed5e17999d4cf7d5e79c2830fbaefab8a794","tags":[]}],"priority":{"score":9.6,"factors":[{"name":"EPSS percentile","points":5.78},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"huggingface","affectedVersions":[{"vendor":"huggingface","product":"huggingface/smolagents","versions":[">= unspecified, < 1.22.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-22T14:07:23.770923Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"smolagents","vulnerableRanges":["<1.22.0"],"patched":["1.22.0"],"from":["GHSA-8mf9-rmgw-33qc","PYSEC-2026-1930"],"provenance":"source"}],"summary":{"text":"Hugging Face Smolagents 1.20.0 contains an XPath injection flaw in the search_item_ctrl_f function in src/smolagents/vision_web_browser.py, where user-supplied input is concatenated directly into an XPath query without sanitization or escaping. An attacker who can get crafted input to that function can alter the query logic to bypass search filters, reach unintended DOM elements, or disrupt web automation, which may expose information or manipulate agent behaviour, and exploitation requires user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:13:04Z"},"euvd":{"id":"EUVD-2025-35361","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-5120","published":"2025-07-27","fixed":"1.17.0","kev":false,"link":{"from":"CVE-2025-5120","to":"CVE-2025-11844","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:smolagents","fromFixed":"1.17.0","toFixed":"1.22.0","daysApart":87}]}},{"cve":"CVE-2025-11844","published":"2025-10-22","fixed":"1.22.0","kev":false}],"package":"PyPI:smolagents"}}