{
  "id": "CVE-2026-9487",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-9487",
  "published_at": "2026-08-03T13:14:43.135Z",
  "title": "XML::Sig versions before 0.71 for Perl allow signature wrapping via duplicate ID",
  "vendor": "TIMLEGGE",
  "product": "XML::Sig",
  "cvss": {
    "score": 9.1,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-347",
  "cpes": [
    "cpe:2.3:a:xml\\:\\:sig_project:xml\\:\\:sig:*:*:*:*:*:perl:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 9.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "TIMLEGGE",
        "product": "XML::Sig",
        "ranges": [
          "\u003c 0.71"
        ],
        "fixed_in": [
          "0.71"
        ]
      }
    ],
    "solutions": [
      "Upgrade to version 0.71"
    ],
    "upgrade": [
      "Upgrade XML::Sig to 0.71 or later."
    ],
    "workarounds": [
      "Signing the outermost \u003csamlp:Response\u003e element rather than only the inner \u003csaml:Assertion\u003e reduces exposure, but does not prevent wrapping variants in which the duplicate ID is introduced outside the signed element. Upgrading to 0.71 is the complete fix."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/perl-net-saml2/perl-XML-Sig/commit/4976bde5245df69b8e02c6ae061acbd4891cd7f9.patch"
      },
      {
        "kind": "Release notes",
        "url": "https://metacpan.org/release/TIMLEGGE/XML-Sig-0.71/source/Changes"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
