CVE-2026-9390: XML::Sig versions before 0.71 for Perl allow XPath injection in ID lookup
XML::Sig versions before 0.71 for Perl allow XPath injection in ID lookup.
verify() and getsignedxml() in lib/XML/Sig.pm build XPath expressions by concatenating the SignedInfo/Reference/@URI value read from the document being verified. The value is neither escaped nor checked against the NCName grammar that XML requires of an ID, so a URI containing a single quote closes the string literal in the generated expression and appends arbitrary XPath operators.
A crafted URI can make the lookup match elements the reference does not name, or every element in the document, so which node is selected for digest verification is decided by the injected expression rather than by the reference.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
XML::Sig (Perl)to a version that resolves this vulnerability.Fixed in 0.71Patch XML::Sig versions before 0.71 for Perl allow XPath injection in ID lookup
Event History
Frequently Asked Questions
What is the severity of CVE-2026-9390?
The severity of CVE-2026-9390 is rated at 45.
What impact does CVE-2026-9390 have on applications?
CVE-2026-9390 can lead to XPath injection vulnerabilities during the ID lookup in applications using affected versions of XML::Sig for Perl.
How do I fix CVE-2026-9390?
To fix CVE-2026-9390, upgrade to XML::Sig version 0.71 or later.
Which versions of XML::Sig are affected by CVE-2026-9390?
CVE-2026-9390 affects all versions of XML::Sig for Perl before 0.71.
What operations are vulnerable to CVE-2026-9390?
The verify() and _get_signed_xml() methods are vulnerable to XPath injection due to unescaped input in CVE-2026-9390.