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

Summary

CVECVE-2026-9390
StatePUBLISHED
AssignerCPANSec
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-08-03 14:16:30 UTC
Updated2026-08-05 14:57:18 UTC
DescriptionXML::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.

Risk And Classification

Primary CVSS: v3.1 9.1 CRITICAL from ADP

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

EPSS: 0.002820000 probability, percentile 0.204170000 (date 2026-08-09)

Problem Types: CWE-643 | CWE-1287 | CWE-643 CWE-643 Improper Neutralization of Data within XPath Expressions ('XPath Injection') | CWE-1287 CWE-1287 Improper Validation of Specified Type of Input


VersionSourceTypeScoreSeverityVector
3.1ADPDECLARED9.1CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
3.1134c704f-9b21-4f2e-91b3-4a467353bcc0Secondary9.1CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Xml sig_project xml\ \ sig

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA TIMLEGGE XMLSig affected 0.71 custom Not specified

References

ReferenceSourceLinkTags
github.com/perl-net-saml2/perl-XML-Sig/commit/69ad2b421118fadd33d57f50b1... 9b29abf9-4ab0-4765-b253-1875cd9b441e github.com Patch
metacpan.org/release/TIMLEGGE/XML-Sig-0.71/changes 9b29abf9-4ab0-4765-b253-1875cd9b441e metacpan.org Release Notes
github.com/perl-net-saml2/perl-XML-Sig/commit/a85aad21aa767ac1c158bbfc19... 9b29abf9-4ab0-4765-b253-1875cd9b441e github.com Patch
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Additional Advisory Data

Solutions

CNA: Upgrade to version 0.71

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report