p PatchFirst

CVE-2025-11844

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 5.4 · Medium · EPSS 0.3% · Fix available

Published
Updated

Stack: python

Affected products and versions

  • huggingface/smolagents

    Versions
    • ≥ unspecified, < 1.22.0: Affected (custom)

    Update to 1.22.0

  • smolagents PyPI

    Versions
    • 0.1.0
    • 0.1.2
    • 0.1.3
    • 1.0.0
    • 1.1.0
    • 1.10.0
    • 1.11.0
    • 1.12.0
    • 1.13.0
    • 1.14.0
    • 1.15.0
    • 1.16.0
    • 1.16.1
    • 1.17.0
    • 1.18.0
    • 1.19.0
    • 1.2.0
    • 1.2.1
    • 1.2.2
    • 1.20.0
    • 1.21.0
    • 1.21.1
    • 1.21.2
    • 1.21.3
    • 1.3.0
    • 1.4.0
    • 1.4.1
    • 1.5.0
    • 1.5.1
    • 1.6.0
    • 1.7.0
    • 1.8.0
    • 1.8.1
    • 1.9.0
    • 1.9.1
    • 1.9.2
    Affected ranges
    • ECOSYSTEM: < 1.22.0

    Update to 1.22.0

Original sources

Check your server →