{"id":"CVE-2026-9487","summary":"XML::Sig versions before 0.71 for Perl allow signature wrapping via duplicate ID","details":"XML::Sig versions before 0.71 for Perl allow signature wrapping via duplicate ID.\n\n_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.\n\nSuch 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.","modified":"2026-08-05T03:32:41.074952312Z","published":"2026-08-03T13:14:43.135Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/9xxx/CVE-2026-9487.json","cna_assigner":"CPANSec","cwe_ids":["CWE-347"]},"references":[{"type":"WEB","url":"https://cpan.org/modules"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/9xxx/CVE-2026-9487.json"},{"type":"ADVISORY","url":"https://metacpan.org/release/TIMLEGGE/XML-Sig-0.71/source/Changes"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-9487"},{"type":"FIX","url":"https://github.com/perl-net-saml2/perl-XML-Sig/commit/4976bde5245df69b8e02c6ae061acbd4891cd7f9.patch"},{"type":"PACKAGE","url":"https://github.com/perl-net-saml2/perl-XML-Sig"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/perl-net-saml2/perl-xml-sig","events":[{"introduced":"0"},{"fixed":"7ac376f7377495e38b97e5a83c29b41c8f718b8a"},{"fixed":"4976bde5245df69b8e02c6ae061acbd4891cd7f9"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"0.71"}],"source":["DESCRIPTION","REFERENCES"]}}],"versions":["0.70","0.69","0.68","0.67","0.66","0.65","0.64","0.63","0.62","0.61","0.60","0.59","0.58","0.57","0.56","0.55","0.54","0.53","0.52","0.51","0.50","0.49","0.48-TRIAL","0.47","0.46-TRIAL","0.45","0.44-TRIAL","0.43","0.42-TRIAL","0.41-TRIAL","v0.40-TRIAL","0.40-TRIAL","0.39","0.38","0.37-TRIAL","0.36","0.35-TRIAL","0.33","0.32","0.31-TRIAL","0.30-TRIAL","0.23","0.22","0.21","0.2.1","0.2","0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-9487.json"}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"}]}