CVE-2025-11844
Python vulnerability analysis and mitigation

Overview

Hugging Face Smolagents version 1.20.0 contains an XPath injection vulnerability (CVE-2025-11844) in the searchitemctrlf function located in src/smolagents/visionweb_browser.py. The vulnerability was discovered on October 22, 2025, and affects versions up to 1.22.0. The function constructs an XPath query by directly concatenating user-supplied input into the XPath expression without proper sanitization or escaping (NVD, Miggo).

Technical details

The vulnerability stems from the direct concatenation of user-provided input into XPath queries without proper sanitization in the searchitemctrlf function. The CVSS v3.0 base score is 5.4 (Medium) with the vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N. The issue is classified as CWE-643 (Improper Neutralization of Data within XPath Expressions). The vulnerable code directly embedded user input into the XPath query using the line elements = driver.findelements(By.XPATH, f"//[contains(text(), '{text}')]") (Miggo, GitHub Patch).

Impact

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 (NVD).

Mitigation and workarounds

The vulnerability has been fixed in Smolagents version 1.22.0. The fix involves adding a new escapexpath_string function to properly sanitize user input before including it in XPath queries. Users should upgrade to version 1.22.0 or later to address this vulnerability (GitHub Patch).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66471HIGH8.9
  • PythonPython
  • urllib3
NoYesDec 05, 2025
CVE-2025-66418HIGH8.9
  • PythonPython
  • python-urllib3
NoYesDec 05, 2025
CVE-2025-65958HIGH8.5
  • PythonPython
  • cpe:2.3:a:openwebui:open_webui
NoYesDec 04, 2025
CVE-2025-56427HIGH7.5
  • PythonPython
  • composio
NoNoDec 04, 2025
CVE-2025-63681MEDIUM4.3
  • PythonPython
  • open-webui
NoNoDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management