{"id":"CVE-2025-11844","aliases":["CVE-2025-11844","GHSA-8mf9-rmgw-33qc","PYSEC-2026-1930"],"related":[],"kind":"vulnerability","state":"published","title":"XPath Injection in Hugging Face Smolagents search_item_ctrl_f Function","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Hugging Face Smolagents versión 1.20.0 contiene una vulnerabilidad de inyección XPath en la función search_item_ctrl_f ubicada en src/smolagents/vision_web_browser.py. La función construye una consulta XPath al concatenar directamente la entrada proporcionada por el usuario en la expresión XPath sin una sanitización o escape adecuados. Esto permite a un atacante inyectar sintaxis XPath maliciosa que puede alterar la lógica de consulta prevista. La vulnerabilidad permite a los atacantes eludir los filtros de búsqueda, acceder a elementos DOM no deseados y perturbar los flujos de trabajo de automatización web. Esto puede conducir a la revelación de información, la manipulación de las interacciones de los agentes de IA y comprometer la fiabilidad de las tareas web automatizadas. El problema se corrige en la versión 1.22.0.","source":"nvd"}],"published":"2025-10-22T13:13:55.882Z","modified":"2026-10-08T11:10:00.250Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS: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,"rating":"MEDIUM"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS: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,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS: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,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS: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,"rating":"MEDIUM"}],"cwes":["CWE-643"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.22.0","status":"affected"}],"vendor":"huggingface","product":"huggingface/smolagents","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.22.0"}],"ecosystem":"PyPI","package":"smolagents","purl":"pkg:pypi/smolagents","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.20.0","fixed":"1.22.0"}],"vendor":"huggingface","product":"smolagents","cpe":"cpe:2.3:a:huggingface:smolagents:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.22.0"}],"ecosystem":"PyPI","package":"smolagents","purl":"pkg:pypi/smolagents","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/01ab4405-9bca-4b26-b7a3-5ca1863a69b4","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/huggingface/smolagents/commit/f570ed5e17999d4cf7d5e79c2830fbaefab8a794","tags":["patch","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-11844","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/huggingface/smolagents","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/smolagents","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-8mf9-rmgw-33qc","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-10-22T14:07:23.770Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-11844","url":"https://www.cve.org/CVERecord?id=CVE-2025-11844","licence":"CVE Terms of Use","modified":"2025-10-22T14:09:51.303Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8mf9-rmgw-33qc","url":"https://github.com/advisories/GHSA-8mf9-rmgw-33qc","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:39.648Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-11844","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-11844","licence":"Public domain","modified":"2026-10-08T11:10:00.250Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1930","url":"https://osv.dev/vulnerability/PYSEC-2026-1930","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:54.122Z"}],"updatedAt":"2026-11-25T22:59:06.658Z","epss":{"score":0.0028,"percentile":0.22039,"date":"2026-12-01T12:00:22.000Z"}}