Cyber Resilience

CVE-2025-11844

Huggingface Smolagents 1.20.0 – 1.22.0

Public PoC
Published
22 October 2025
Modified
30 October 2025
Patch / advisory
CVSS Score v3 5.4
Click a component to see what it means
Raw vectorCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
EPSS Score 0.0026 18th percentile
Risk Priority 42 floored blend · peak EPSS

Summary

CVE-2025-11844 is a medium-severity XPath Injection (CWE-643) vulnerability in Huggingface Smolagents. Its CVSS base score is 5.4 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 18th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

This vulnerability is AI-related — categorised as AI Agent Protocols and Integrations; in the LLM/Generative AI Risks risk domain.

The strongest mitigations our analysis identified map to SI-10 (Information Input Validation) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

AI Security AnalysisAI

AI Category
AI Agent Protocols and Integrations
Risk Domain
LLM/Generative AI Risks
OWASP Top 10 for LLMs 2025
None mapped
Classification Reason
Matched keywords: ai, hugging face

Related Threats

MITRE ATT&CK Enterprise Techniques

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-2654Same product: Huggingface Smolagents
CVE-2025-5120Same product: Huggingface Smolagents
CVE-2026-4963Same product: Huggingface Smolagents
CVE-2023-24922Shared CWE-643
CVE-2025-20218Shared CWE-643
CVE-2024-39565Shared CWE-643
CVE-2023-36433Shared CWE-643
CVE-2026-44962Shared CWE-643
CVE-2026-24343Shared CWE-643
CVE-2026-40699Shared CWE-643

Affected Assets

huggingface
smolagents
1.20.0 — 1.22.0

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V1.2.4
  • V1.2.7
  • V2.2.1
  • V4.3.1

Mitigating Controls (NIST 800-53 r5) AI

Input validation directly requires neutralizing untrusted data before it is used to build XPath queries.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly require input neutralization and query parameterization that prevent XPath injection.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

prevents

Secure coding standards require proper neutralization of untrusted input in XPath expressions.

finds

Security testing in development catches XPath injection vulnerabilities before release.

prevents

Secure SDLC mandates input validation and query parameterization that directly prevent XPath injection.

prevents

Application security requirements explicitly call for defenses against injection flaws including XPath injection.

prevents

Secure architecture principles reduce the likelihood of unsafe dynamic query construction.

finds

Vulnerability management processes identify and remediate XPath injection flaws discovered post-deployment.

References