PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-9487 TIMLEGGE CVE debrief

The XML::Sig library for Perl, versions before 0.71, is vulnerable to signature wrapping attacks due to its handling of duplicate IDs in XML documents. This vulnerability allows an attacker to supply a second element with the same ID, which can be read by applications resolving the ID independently, potentially allowing for the manipulation of SAML2 assertions. Affected product deployments exist in managed environments using XML::Sig for SAML2 authentication, particularly those in environments relying on Perl-based SAML2 implementations. The vulnerability has a CVSS score of 9.1 and is considered critical. Developers and administrators should verify their XML::Sig version and upgrade to 0.71 or later. They should also review and update affected applications to handle ID resolution independently and monitor for suspicious SAML2 assertions. The CVE record was published on 2026-08-03T14:16:31.110Z and has not been modified since then.

Vendor
TIMLEGGE
Product
XML::Sig
CVSS
CRITICAL 9.1
CISA KEV
Not listed in stored evidence
Original CVE published
2026-08-03
Original CVE updated
2026-08-05
Advisory published
2026-08-03
Advisory updated
2026-08-05

Who should care

Developers and administrators using XML::Sig for SAML2 authentication, particularly those in environments relying on Perl-based SAML2 implementations, should verify their XML::Sig version and upgrade to 0.71 or later. They should also review and update affected applications to handle ID resolution independently and monitor for suspicious SAML2 assertions.

Technical summary

The XML::Sig library for Perl, versions before 0.71, is vulnerable to signature wrapping attacks due to its handling of duplicate IDs in XML documents. Specifically, the _get_signed_xml() function in lib/XML/Sig.pm uses the XPath expression '//*[@ID='$id']' to resolve SignedInfo Reference/@URI, returning the first node of the resulting node set. This allows an attacker to supply a second element with the same ID, which can be read by applications resolving the ID independently, potentially allowing for the manipulation of SAML2 assertions.

Defensive priority

Critical vulnerability in XML::Sig affecting SAML2 contexts; verify and apply patches immediately.

Recommended defensive actions

  • Verify XML::Sig version and upgrade to 0.71 or later
  • Review and update affected applications to handle ID resolution independently
  • Monitor for and block suspicious SAML2 assertions
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
  • Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance
  • Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review

Evidence notes

The CVE-2026-9487 record indicates XML::Sig versions before 0.71 for Perl are vulnerable to signature wrapping via duplicate ID. The _get_signed_xml() function in lib/XML/Sig.pm resolves SignedInfo Reference/@URI to a node with the XPath expression '//*[@ID='$id']' and returns the first node of the resulting node set. This allows a document with two elements sharing the same ID value to be accepted, verifying successfully while an application resolving the same ID independently can read the second, attacker-supplied element.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-9487 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-9487

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-9487 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-9487

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Mitigation or vendor reference

    Unverified legacy reference

    URL: https://github.com/perl-net-saml2/perl-XML-Sig/commit/4976bde5245df69b8e02c6ae061acbd4891cd7f9.patch

    9b29abf9-4ab0-4765-b253-1875cd9b441e - Patch

  • Mitigation or vendor reference

    Unverified legacy reference

    URL: https://metacpan.org/release/TIMLEGGE/XML-Sig-0.71/source/Changes

    9b29abf9-4ab0-4765-b253-1875cd9b441e - Release Notes

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.