CVE-2026-86304 Details
Description
MojoX::Authentication versions before 0.006 for Perl allow SAML authentication bypass because parse_assertion builds Net::SAML2::Binding::POST without a trust anchor. parse_assertion in MojoX::Authentication::Model::SAML2 calls Net::SAML2::Binding::POST->new with no cacert, cert_text or anchors argument, then passes the returned XML to Net::SAML2::Protocol::Assertion->new_from_xml with the IdP signing certificate as cacert. In Net::SAML2 before 0.86 that certificate guards only encrypted assertions, so the signature on an unencrypted assertion is checked against the certificate the response itself carries. An attacker starts a SAML login, then posts a response signed with a certificate of their own. The audience, InResponseTo and timestamp checks that follow are all satisfiable by the attacker, so the response authenticates any NameID it carries.
A vulnerability in MojoX::Authentication for Perl, specifically in versions prior to 0.006, allows for SAML authentication bypass. This issue arises because the 'parse_assertion' method in 'MojoX::Authentication::Model::SAML2' calls 'Net::SAML2::Binding::POST' without a trust anchor, leaving the response verification vulnerable. The 'verify_xml' method in 'Net::SAML2' versions prior to 0.86 only checks encrypted assertions against the IdP signing certificate, allowing an attacker to manipulate SAML responses and authenticate arbitrary users.
Users are advised to update to MojoX::Authentication version 0.006 or later, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 6, 2026CISA-ADP
Assessed Sep 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://metacpan.org/release/POLETTIX/MojoX-Authentication-0.004/source/lib/MojoX/Authentication/Model/SAML2.pm#L188 | CPANSec | Source CodeVendor |
| https://metacpan.org/release/POLETTIX/MojoX-Authentication-0.006/source/Changes | CPANSec | Release NotesVendor |
| https://www.cve.org/CVERecord?id=CVE-2026-18089 | CPANSec | Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-347 | Improper Verification of Cryptographic Signature | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| MojoX::Authentication | < 0.006 |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 8, 2026 | CVE Modified | CISA-ADP |
| Sep 6, 2026 | New CVE Received | CPANSec |
Volerion