<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Xpath-Injection - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/xpath-injection/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Wed, 21 Oct 2026 04:16:21 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/xpath-injection/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Hugging Face smolagents: XPath injection in vision_web_browser.py (CVE-2025-11844)</title><link>https://feed.craftedsignal.io/briefs/2026-10-smolagents-xpath-injection/</link><pubDate>Wed, 21 Oct 2026 04:16:21 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-10-smolagents-xpath-injection/</guid><description>An XPath injection vulnerability in the Hugging Face smolagents library (CVE-2025-11844) allows for local data extraction and arbitrary DOM traversal via improper input validation in the search_item_ctrl_f function.</description><content:encoded><![CDATA[<p>CVE-2025-11844 is an XPath injection vulnerability affecting the Hugging Face smolagents library in versions prior to 1.22.0. The vulnerability resides within the <code>search_item_ctrl_f</code> function located in <code>vision_web_browser.py</code>. This issue occurs because user-supplied input is directly concatenated into an internal XPath query string - specifically formatted as <code>//*[contains(text(), 'USER_INPUT_HERE')]</code> - without sufficient sanitization or validation. By crafting malicious input, an attacker can escape the intended query structure, facilitating arbitrary DOM traversal and potential information disclosure within environments utilizing the library for vision-based web browsing tasks. The availability of proof-of-concept scanning frameworks elevates the risk for organizations relying on this library for automated agentic workflows.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>The attacker identifies an application or agent workflow utilizing a vulnerable version of the <code>smolagents</code> library.</li>
<li>The attacker triggers a function call that eventually invokes <code>search_item_ctrl_f</code> in <code>vision_web_browser.py</code>.</li>
<li>The attacker provides a specifically crafted malicious string as input to the affected function parameter.</li>
<li>The application logic concatenates the malicious input directly into an XPath query string.</li>
<li>The XPath engine executes the modified query, allowing the attacker to break out of the intended query context.</li>
<li>The attacker performs arbitrary DOM traversal to extract sensitive data or bypass intended input restrictions.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation can lead to local data extraction and information disclosure. The vulnerability affects users and automated agents using the smolagents library for vision-based web interaction. While the CVSS score is 5.4, the potential for unauthorized access to data processed or retrieved by AI agents presents a significant risk to the integrity of agent-driven automation workflows.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Update the <code>smolagents</code> library to version 1.22.0 or later to patch the input validation flaw associated with CVE-2025-11844.</li>
<li>Review applications utilizing <code>smolagents</code> to identify if any user-controlled input is passed directly to the <code>search_item_ctrl_f</code> function.</li>
<li>Implement strict input validation and sanitization for all strings processed by the library in custom agent implementations until the library is patched.</li>
</ul>
]]></content:encoded><category domain="severity">low</category><category domain="type">advisory</category><category>vulnerability</category><category>xpath-injection</category><category>ai-security</category></item></channel></rss>