CVE-2025-11844: XPath Injection in Hugging Face Smolagents search_item_ctrl_f Function

Published Oct 22, 2025
·
Updated

Hugging Face Smolagents version 1.20.0 contains an XPath injection vulnerability in the searchitemctrlf function located in src/smolagents/visionwebbrowser.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.

Affected Software

3 affected componentsFixes available
Hugging Face smolagents>1.20.0<=1.22.0
pip/smolagents<1.22.0
1.22.0
huggingface smolagents>=1.20.0<1.22.0

Event History

Oct 22, 2025
CVE Published
via MITRE·01:13 PM
Data Sourced
via MITRE·01:13 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·03:31 PM
Data Sourced
via GitHub·03:31 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-11844?

CVE-2025-11844 has a moderate severity due to an XPath injection vulnerability that may allow arbitrary data retrieval.

2

How do I fix CVE-2025-11844?

To fix CVE-2025-11844, update Hugging Face Smolagents to a version higher than 1.22.0.

3

What versions of Hugging Face Smolagents are affected by CVE-2025-11844?

Versions of Hugging Face Smolagents from 1.20.0 up to 1.22.0 are affected by CVE-2025-11844.

4

What type of vulnerability is CVE-2025-11844?

CVE-2025-11844 is an XPath injection vulnerability in the search_item_ctrl_f function.

5

Where is the XPath injection vulnerability found in CVE-2025-11844?

The XPath injection vulnerability in CVE-2025-11844 is located in the src/smolagents/vision_web_browser.py file.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203