# CVE-2026-18089: 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

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-08-03T12:42:08.879Z
- Modified: 2026-10-23T21:10:00.157Z
- Weaknesses: CWE-295, CWE-347
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## 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.

verify_xml in Net::SAML2::Role::VerifyXML runs "return if !$anchors && !$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;".

Any caller that constructs Binding::POST or calls Assertion->new_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.

(As written by CVE List.)

## Affected

- Net-SAML2: before 0.86
- timlegge net::saml2: before 0.86

## References

- <https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.88/source/Changes> (release-notes)
- <https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.85/source/lib/Net/SAML2/Role/VerifyXML.pm#L32> (product)
- <https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.85/source/lib/Net/SAML2/Binding/POST.pm#L21> (product)
- <https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.85/source/lib/Net/SAML2/Protocol/Assertion.pm#L84> (product)

## Sources

- CVE List: [CVE-2026-18089](https://www.cve.org/CVERecord?id=CVE-2026-18089), CVE Terms of Use, modified 2026-08-03
- NVD: [CVE-2026-18089](https://nvd.nist.gov/vuln/detail/CVE-2026-18089), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-18089 · Whole record: https://cve.day/CVE-2026-18089.json · Rebuilt by cve.day 2026-11-25T22:59:30.861Z
