CVE-2026-9487: CWE-347 Improper Verification of Cryptographic Signature in TIMLEGGE XML::Sig
XML::Sig versions before 0.71 for Perl contain a critical vulnerability that allows signature wrapping via duplicate ID values. The _get_signed_xml() function resolves SignedInfo Reference/@URI by selecting the first node with a matching ID, but does not detect if multiple elements share that ID. This can cause a document with duplicate IDs to verify successfully while an attacker controls the second element, potentially compromising SAML2 assertions.
AI Analysis
Technical Summary
CVE-2026-9487 is a critical vulnerability in XML::Sig versions prior to 0.71 where improper verification of cryptographic signatures occurs due to duplicate ID values in XML documents. The function _get_signed_xml() uses an XPath expression to select the first node matching a given ID but does not detect duplicates. This allows an attacker to craft a document with two elements sharing the same ID, where the signature verification checks the first element but an application may process the second, attacker-controlled element. In SAML2 contexts, this can lead to assertion manipulation under attacker control. The vulnerability is classified as CWE-347 (Improper Verification of Cryptographic Signature) and has a CVSS 3.1 base score of 9.1 (critical).
Potential Impact
An attacker can exploit this vulnerability to bypass signature verification by using duplicate ID values in XML documents, enabling signature wrapping attacks. This can lead to unauthorized manipulation of signed data, such as SAML2 assertions, potentially allowing attackers to impersonate users or escalate privileges. The vulnerability affects confidentiality and integrity but does not impact availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid processing XML documents with duplicate ID attributes or implement additional checks to detect and reject documents containing duplicate IDs during signature verification.
CVE-2026-9487: CWE-347 Improper Verification of Cryptographic Signature in TIMLEGGE XML::Sig
Description
XML::Sig versions before 0.71 for Perl contain a critical vulnerability that allows signature wrapping via duplicate ID values. The _get_signed_xml() function resolves SignedInfo Reference/@URI by selecting the first node with a matching ID, but does not detect if multiple elements share that ID. This can cause a document with duplicate IDs to verify successfully while an attacker controls the second element, potentially compromising SAML2 assertions.
CVSS v3.1
Score 9.1critical
Affected software
TIMLEGGE
XML::Sig
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-9487 is a critical vulnerability in XML::Sig versions prior to 0.71 where improper verification of cryptographic signatures occurs due to duplicate ID values in XML documents. The function _get_signed_xml() uses an XPath expression to select the first node matching a given ID but does not detect duplicates. This allows an attacker to craft a document with two elements sharing the same ID, where the signature verification checks the first element but an application may process the second, attacker-controlled element. In SAML2 contexts, this can lead to assertion manipulation under attacker control. The vulnerability is classified as CWE-347 (Improper Verification of Cryptographic Signature) and has a CVSS 3.1 base score of 9.1 (critical).
Potential Impact
An attacker can exploit this vulnerability to bypass signature verification by using duplicate ID values in XML documents, enabling signature wrapping attacks. This can lead to unauthorized manipulation of signed data, such as SAML2 assertions, potentially allowing attackers to impersonate users or escalate privileges. The vulnerability affects confidentiality and integrity but does not impact availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid processing XML documents with duplicate ID attributes or implement additional checks to detect and reject documents containing duplicate IDs during signature verification.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-05-24T13:47:37.954Z
- State
- PUBLISHED
Threat ID: 6a7098b3bf32cb7a34a82350
Added to database: 08/03/2026, 13:33:39 UTC
Last enriched: 08/10/2026, 14:59:12 UTC
Last updated: 09/17/2026, 22:01:39 UTC
Views: 62
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.