CVE-2026-9390
published critical CVSS 3.1 · 9.1XML::Sig versions before 0.71 for Perl allow XPath injection in ID lookup
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| TIMLEGGE | — | XML-SigXML::Sig · 0 to < 0.71 · Other versions: unaffected | Affected | Not stated | CPANSec |
| Alpine Linux | edge | perl-xml-sig | Fixed | 0.72-r0 | Package fix record |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.1 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| TIMLEGGE | XML::Sig | 0 to < 0.71 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
2- CWE-643 CWE-643 Improper Neutralization of Data within XPath Expressions ('XPath Injection')
- CWE-1287 CWE-1287 Improper Validation of Specified Type of Input
References
3Provider assertions
2CPANSec · cna
XML::Sig versions before 0.71 for Perl allow XPath injection in ID lookup
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4d762024083ff638fcebd774b233405a2dd40993d45509cb83b50b530d770366
- Ingested
- 23 Sep 2026, 09:41:13 UTC
- Source record
- Official CVE record