{
  "id": "CVE-2026-18089",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-18089",
  "published_at": "2026-08-03T12:42:08.879Z",
  "title": "Net::SAML2 versions before 0.86 for Perl allow SAML authentication bypass by verifying responses against the response-embedded certificate in verify_xml when no trust anchor is configured",
  "vendor": "TIMLEGGE",
  "product": "Net::SAML2",
  "cvss": {
    "score": 7.5,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/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": "Net::SAML2 versions before 0.86 for Perl allow SAML authentication bypass by verifying responses against the response-embedded certificate in verify_xml when no trust anchor is configured.\n\nverify_xml in Net::SAML2::Role::VerifyXML runs \"return if !$anchors \u0026\u0026 !$cacert;\" as soon as the XML::Sig check succeeds, and that check uses the X.509 certificate taken from the response's own dsig:KeyInfo/dsig:X509Certificate element, so an unanchored response is checked only against the key it carries. Binding::POST declares cacert as an optional Maybe[Str] with no default, so a POST binding built without one takes that path, and _verify_encrypted_assertion returns early the same way with \"return $xml unless $cacert;\".\n\nAny caller that constructs Binding::POST or calls Assertion-\u003enew_from_xml without a cacert, cert_text, or anchors argument accepts a response signed by an attacker generated key whose self-signed certificate is embedded in that response, authenticating an arbitrary assertion.",
  "cwe": "CWE-347",
  "cpes": [
    "cpe:2.3:a:timlegge:net\\:\\:saml2:*:*:*:*:*:perl:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "TIMLEGGE",
        "product": "Net::SAML2",
        "ranges": [
          "\u003c 0.86"
        ],
        "fixed_in": [
          "0.86"
        ]
      }
    ],
    "solutions": [
      "Upgrade to Net::SAML2 0.86 or later, which requires a cacert or cert_text trust anchor before a response or assertion signature is verified."
    ],
    "upgrade": [
      "Upgrade Net::SAML2 to 0.86 or later."
    ],
    "workarounds": [
      "For deployments that cannot upgrade, construct Net::SAML2::Binding::POST, and call Net::SAML2::Protocol::Assertion-\u003enew_from_xml, with a cacert, cert_text, or anchors argument identifying the IdP signing certificate."
    ],
    "references": [
      {
        "kind": "Release notes",
        "url": "https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.88/source/Changes"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
