{"answers":{"affected":"3 open source packages ship an affected version, including smolagents. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-11844 exists.","fix":"Upgrade smolagents to 1.22.0 or later.","what":"CVE-2025-11844 is a medium-severity vulnerability in huggingface/smolagents, published on 22 Oct 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-11844 and fix it if it is affected.\n\nWhat it is: CVE-2025-11844 is a medium-severity vulnerability in huggingface/smolagents, published on 22 Oct 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-11844 exists.\n\nAffected packages and fixed versions:\n- smolagents (PyPI): affected all versions; fixed in 1.22.0\n- smolagents (PyPI): affected all versions; fixed in 1.22.0\n- smolagents (PyPI): affected all versions; fixed in 1.22.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-11844/ (Markdown: https://insights.sbomify.com/CVE-2025-11844/index.md)","id":"CVE-2025-11844","markdown":"https://insights.sbomify.com/CVE-2025-11844/index.md","name":"CVE-2025-11844","record":{"aliases":["GHSA-8mf9-rmgw-33qc","PYSEC-2026-1930"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Python AI agent library","requires_auth":"none","summary":"Attackers can inject XPath syntax to bypass filters and access unintended DOM elements in Hugging Face Smolagents web automation tasks.","user_interaction":"required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[{"product":"smolagents","vendor":"huggingface"}],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","version":"3.0"},"cwes":[{"id":"CWE-643","name":"Improper Neutralization of Data within XPath Expressions"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2026-05-29","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-05-29T07:35:12Z","kind":"github_poc","ref":"https://github.com/SparshBiswas-AI/CVE-2025-11844-smolagents","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"XPath Injection in Hugging Face Smolagents search_item_ctrl_f Function","id":"CVE-2025-11844","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"other","year":"2025"},"n_packages":3,"n_references":2,"next":{"headline":"Null dereference in VMG3625-T50B firmware","id":"CVE-2025-11845"},"packages":[{"ecosystem":"PyPI","fixed":["1.22.0"],"introduced":["0"],"last_affected":[],"package":"smolagents","purl":null,"source":"GHSA-8mf9-rmgw-33qc"},{"ecosystem":"PyPI","fixed":["1.22.0"],"introduced":["0"],"last_affected":[],"package":"smolagents","purl":"pkg:pypi/smolagents","source":"GHSA-8mf9-rmgw-33qc"},{"ecosystem":"PyPI","fixed":["1.22.0"],"introduced":["0"],"last_affected":[],"package":"smolagents","purl":"pkg:pypi/smolagents","source":"PYSEC-2026-1930"}],"prev":{"headline":"Auth bypass in Therefore Online and Therefore On-Premises","id":"CVE-2025-11843"},"products":["huggingface/smolagents"],"published":"2025-10-22","related":[{"cvss_score":7.6,"headline":"Sandbox Escape Vulnerability in huggingface/smolagents","id":"CVE-2025-5120","kev_date_added":null,"published":"2025-07-27"},{"cvss_score":5.3,"headline":"huggingface smolagents Incomplete Fix CVE-2025-9959 local_python_executor.py evaluate_with code injection","id":"CVE-2026-4963","kev_date_added":null,"published":"2026-03-27"},{"cvss_score":5.3,"headline":"huggingface smolagents LocalPythonExecutor requests.post server-side request forgery","id":"CVE-2026-2654","kev_date_added":null,"published":"2026-02-18"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-10-22","vendors":["huggingface"]},"summary":"Attackers can inject XPath syntax to bypass filters and access unintended DOM elements in Hugging Face Smolagents web automation tasks.","url":"https://insights.sbomify.com/CVE-2025-11844/"}