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.
References
Configurations
History
06 Aug 2026, 18:36
| Type | Values Removed | Values Added |
|---|---|---|
| First Time |
Timlegge net\
Timlegge |
|
| CPE | cpe:2.3:a:timlegge:net\:\:saml2:*:*:*:*:*:perl:*:* | |
| References | () https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.85/source/lib/Net/SAML2/Binding/POST.pm#L21 - Product | |
| References | () https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.85/source/lib/Net/SAML2/Protocol/Assertion.pm#L84 - Product | |
| References | () https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.85/source/lib/Net/SAML2/Role/VerifyXML.pm#L32 - Product | |
| References | () https://metacpan.org/release/TIMLEGGE/Net-SAML2-0.88/source/Changes - Release Notes |
03 Aug 2026, 20:17
| Type | Values Removed | Values Added |
|---|---|---|
| CVSS |
v2 : v3 : |
v2 : unknown
v3 : 7.5 |
03 Aug 2026, 14:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-08-03 14:16
Updated : 2026-08-06 18:36
NVD link : CVE-2026-18089
Mitre link : CVE-2026-18089
CVE.ORG link : CVE-2026-18089
JSON object : View
Products Affected
timlegge
- net\
