CVE-2026-18092: Net::SAML2 versions before 0.86 for Perl allow SAML authentication bypass via XML signature wrapping because new_from_xml reads assertion identity with document-wide XPath instead of the signed subtree

Published Aug 3, 2026
·
Updated

Net::SAML2 versions before 0.86 for Perl allow SAML authentication bypass via XML signature wrapping because newfromxml reads assertion identity with document-wide XPath instead of the signed subtree.

newfromxml reads the NameID, attribute values, SessionIndex, audience and other identity fields with document-wide XPath, such as //saml:Assertion/saml:AttributeStatement/saml:Attribute and //saml:Subject/saml:NameID, which select the first matching element in document order rather than the element covered by the verified signature. handleresponse confirms that a signature is present and, when a cacert is configured, that it chains to the CA, but XML::Sig verifies only the element named by the signature's Reference URI, so unsigned sibling assertions in the same document are not covered. An attacker who holds any one IdP-signed assertion can add an unsigned attacker-authored assertion earlier in document order; the signature still verifies and the document-order XPath returns the attacker's NameID and attributes.

Any caller that passes an untrusted Response to newfromxml can accept identity fields from an assertion the IdP never signed, even when a cacert trust anchor is configured, so a party holding one valid IdP-signed assertion can authenticate as an arbitrary user.

Affected Software

1 affected component
CPAN Net::SAML2 (Perl)<0.86

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Net::SAML2 (Perl) to a version that resolves this vulnerability.

    Fixed in 0.86
  2. Compensating control

    Ensure callers do not pass untrusted SAML Responses into Net::SAML2 new_from_xml; only process responses from a trusted IdP so identity fields cannot be taken from assertions the IdP never signed (especially when unsigned sibling assertions are present).

Event History

Aug 3, 2026
CVE Published
via MITRE·01:24 PM
Data Sourced
via MITRE·01:24 PM
RemedyDescriptionWeakness
Data Sourced
via NVD·02:16 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-18092?

The severity of CVE-2026-18092 is rated at 80, indicating a high risk associated with the vulnerability.

2

How do I fix CVE-2026-18092?

To fix CVE-2026-18092, upgrade to Net::SAML2 version 0.86 or later.

3

What does CVE-2026-18092 allow an attacker to do?

CVE-2026-18092 allows an attacker to bypass SAML authentication via XML signature wrapping.

4

Which versions of Net::SAML2 are affected by CVE-2026-18092?

CVE-2026-18092 affects all versions of Net::SAML2 prior to 0.86.

5

What is the underlying issue in CVE-2026-18092?

The underlying issue in CVE-2026-18092 is that new_from_xml reads assertion identity using document-wide XPath instead of the signed subtree.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203