CVE-2026-9487
Received Received - Intake

XML Signature Wrapping in XML::Sig Perl Module

Vulnerability report for CVE-2026-9487, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-03

Last updated on: 2026-08-03

Assigner: CPANSec

Description

XML::Sig versions before 0.71 for Perl allow signature wrapping via duplicate ID. _get_signed_xml() in lib/XML/Sig.pm, called from verify(), resolves the SignedInfo Reference/@URI to a node with the XPath expression "//*[@ID='$id']" and returns the first node of the resulting node set. A document in which two elements share that ID value is accepted: the digest and signature are checked against whichever element comes first in document order, and the duplicate is not detected. Such a document verifies successfully while an application that resolves the same ID independently can read the second, attacker supplied element; in a SAML2 context this places the contents of an Assertion under attacker control.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-03
Last Modified
2026-08-03
Generated
2026-08-03
AI Q&A
2026-08-03
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Currently, no data is known.

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-347 The product does not verify, or incorrectly verifies, the cryptographic signature for data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

XML::Sig versions before 0.71 for Perl are vulnerable to signature wrapping via duplicate ID. The function _get_signed_xml() resolves the SignedInfo Reference/@URI to a node using an XPath expression that returns the first matching node. If two elements share the same ID, the first one is used for verification, while an attacker can manipulate the second element. This allows an attacker to bypass signature validation and inject malicious content.

Detection Guidance

This vulnerability involves XML::Sig for Perl before version 0.71, where signature wrapping can occur due to duplicate ID values. Detection requires checking installed Perl modules and reviewing XML processing logic for ID handling.

Impact Analysis

This vulnerability can allow an attacker to bypass security checks and inject malicious content into XML documents. In a SAML2 context, it could place the contents of an Assertion under attacker control, potentially leading to unauthorized access or data manipulation.

Compliance Impact

This vulnerability could impact compliance with standards like GDPR and HIPAA by allowing unauthorized modification of signed XML data, such as SAML2 assertions. If exploited, it may lead to improper access controls or data integrity violations, which are critical under these regulations.

Mitigation Strategies

Update XML::Sig to version 0.71 or later to address the signature wrapping vulnerability. Review XML documents for duplicate ID values in elements that should be unique. Ensure SAML2 assertions are validated with strict ID resolution to prevent attacker-controlled content injection.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-9487. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart