


Perceptive Security
SOC/SIEM Consultancy

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 Signe…
Published:
2 augustus 2026 om 22:00:00
Alert date:
3 augustus 2026 om 21:04:01
Source:
nvd.nist.gov
Web Technologies, Identity & Access, Supply Chain & Dependencies
CVE-2026-9487 affects XML::Sig versions before 0.71 for Perl, allowing signature wrapping attacks via duplicate XML element IDs. The vulnerability exists in the _get_signed_xml() function within lib/XML/Sig.pm, which uses an XPath expression to resolve SignedInfo Reference URIs but only checks the first matching node in document order. An attacker can craft a document with two elements sharing the same ID value, where the legitimate element passes signature verification while a second attacker-controlled element goes undetected. In a SAML2 context, this allows an attacker to place arbitrary content inside an Assertion, effectively bypassing authentication or authorization controls. The flaw is fixed in XML::Sig version 0.71, with a patch available via the perl-net-saml2 GitHub repository. This is a classic XML Signature Wrapping (XSW) attack and carries significant risk for any application relying on XML digital signatures for trust decisions.
Technical details
Mitigation steps:
Affected products:
XML::Sig before 0.71 for Perl
SAML2 implementations using XML::Sig
Related links:
https://nvd.nist.gov/vuln/detail/CVE-2026-9487
https://github.com/perl-net-saml2/perl-XML-Sig/commit/4976bde5245df69b8e02c6ae061acbd4891cd7f9.patch
https://metacpan.org/release/TIMLEGGE/XML-Sig-0.71/source/Changes
Related CVE's:
Related threat actors:
IOC's:
This article was created with the assistance of AI technology by Perceptive.
