CVE-2026-9390CWE-1287CWE-643

CVE-2026-9390

Critical · published August 3, 2026

CVSS v3.1
9.1
EPSS
0%
Percentile
21.1
In the wild
Unconfirmed
What it is

XML::Sig versions before 0.71 for Perl allow XPath injection in ID lookup.

verify() and _get_signed_xml() 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.

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00288 · 21.1th percentile
Weaknesses
CWE-1287 · Improper Validation of Specified Type of Input; CWE-643 · Improper Neutralization of Data within XPath Expressions ('XPath Injection')
Published
2026-08-03T18:16Z
Affected products (1)
ProductVersionsFixed in
xml\/\< 0.710.71
References (3)
EPSS history
Timeline
  • 03 AUG 13:09Z
    XML::Sig versions before 0.71 for Perl allow XPath injection in ID lookup
    cvelistv5