CVE-2025-11844

MEDIUM

Hugging Face Smolagents 1.20.0-1.21.9 - XPath Injection in search_item_ctrl_f

Title source: llm
STIX 2.1

Exploitation 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)

github WORKING POC
by SparshBiswas-AI · htmlpoc
https://github.com/SparshBiswas-AI/CVE-2025-11844-smolagents

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.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: Hugging Face smolagents library (up to version 1.2.0)
No auth needed
Prerequisites: local HTML file with hidden content · Selenium and ChromeDriver installed
devstral-2 · analyzed May 29, 2026 Full analysis →

Scores

CVSS v3 5.4
EPSS 0.0025
EPSS Percentile 16.5%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact partial

Details

CWE
CWE-643
Status published
Products (2)
huggingface/smolagents 1.20.0 - 1.22.0
pypi/smolagents 0 - 1.22.0PyPI
Published Oct 22, 2025
Tracked Since Feb 18, 2026