CVE-2025-11844
MEDIUMHugging Face Smolagents 1.20.0-1.21.9 - XPath Injection in search_item_ctrl_f
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2025-11844. PoCs published by SparshBiswas-AI.
AI-analyzed exploit summary The repository contains a functional proof-of-concept exploit for CVE-2025-11844, demonstrating an XPath injection vulnerability in Hugging Face's `smolagents` library. The exploit uses Selenium to inject a malicious XPath payload into a local HTML file, extracting hidden content and demonstrating the vulnerability's impact.
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.
Exploits (1)
The repository contains a functional proof-of-concept exploit for CVE-2025-11844, demonstrating an XPath injection vulnerability in Hugging Face's `smolagents` library. The exploit uses Selenium to inject a malicious XPath payload into a local HTML file, extracting hidden content and demonstrating the vulnerability's impact.
References (2)
Scores
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N