CVE-2026-9390: CWE-643 Improper Neutralization of Data within XPath Expressions ('XPath Injection') in TIMLEGGE XML::Sig
XML::Sig versions before 0.71 for Perl are vulnerable to XPath injection due to improper neutralization of data within XPath expressions. The vulnerability arises because the verify() and _get_signed_xml() functions build XPath queries by concatenating unescaped URI values from the document, allowing an attacker to inject arbitrary XPath operators. This can cause the digest verification process to select unintended XML nodes, potentially compromising the integrity verification of signed XML documents.
AI Analysis
Technical Summary
CVE-2026-9390 describes an XPath injection vulnerability in XML::Sig for Perl versions prior to 0.71. The functions verify() and _get_signed_xml() construct XPath expressions by directly concatenating the SignedInfo/Reference/@URI value from the XML document without escaping or validating it against the NCName grammar. An attacker can craft a URI containing a single quote to break out of the string literal in the XPath expression and append arbitrary XPath operators. This manipulation can cause the XPath query to match XML elements not intended by the reference, potentially allowing an attacker to influence which node is selected for digest verification and thus undermine the signature validation process.
Potential Impact
Successful exploitation allows an attacker to manipulate the XPath query used during XML signature verification, causing the verification process to validate unintended XML nodes. This can lead to bypassing signature integrity checks, potentially allowing tampering with signed XML data without detection. The CVSS score of 9.1 indicates a critical severity with high confidentiality and integrity impact, no privileges required, and no user interaction needed.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid processing untrusted XML documents with vulnerable versions of XML::Sig. Consider applying input validation or escaping on the SignedInfo/Reference/@URI values before they are used in XPath expressions to mitigate injection risks.
CVE-2026-9390: CWE-643 Improper Neutralization of Data within XPath Expressions ('XPath Injection') in TIMLEGGE XML::Sig
Description
XML::Sig versions before 0.71 for Perl are vulnerable to XPath injection due to improper neutralization of data within XPath expressions. The vulnerability arises because the verify() and _get_signed_xml() functions build XPath queries by concatenating unescaped URI values from the document, allowing an attacker to inject arbitrary XPath operators. This can cause the digest verification process to select unintended XML nodes, potentially compromising the integrity verification of signed XML documents.
CVSS v3.1
Score 9.1critical
Affected software
TIMLEGGE
XML::Sig
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-9390 describes an XPath injection vulnerability in XML::Sig for Perl versions prior to 0.71. The functions verify() and _get_signed_xml() construct XPath expressions by directly concatenating the SignedInfo/Reference/@URI value from the XML document without escaping or validating it against the NCName grammar. An attacker can craft a URI containing a single quote to break out of the string literal in the XPath expression and append arbitrary XPath operators. This manipulation can cause the XPath query to match XML elements not intended by the reference, potentially allowing an attacker to influence which node is selected for digest verification and thus undermine the signature validation process.
Potential Impact
Successful exploitation allows an attacker to manipulate the XPath query used during XML signature verification, causing the verification process to validate unintended XML nodes. This can lead to bypassing signature integrity checks, potentially allowing tampering with signed XML data without detection. The CVSS score of 9.1 indicates a critical severity with high confidentiality and integrity impact, no privileges required, and no user interaction needed.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid processing untrusted XML documents with vulnerable versions of XML::Sig. Consider applying input validation or escaping on the SignedInfo/Reference/@URI values before they are used in XPath expressions to mitigate injection risks.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-05-23T20:04:32.906Z
- State
- PUBLISHED
Threat ID: 6a7098b3bf32cb7a34a8234b
Added to database: 08/03/2026, 13:33:39 UTC
Last enriched: 08/10/2026, 14:58:59 UTC
Last updated: 09/18/2026, 00:06:01 UTC
Views: 59
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.