CVE-2026-18092: CWE-347 Improper Verification of Cryptographic Signature in TIMLEGGE Net::SAML2
Net::SAML2 versions before 0.86 for Perl contain a vulnerability that allows SAML authentication bypass via XML signature wrapping. The issue arises because the new_from_xml function reads identity fields using document-wide XPath expressions rather than restricting to the signed subtree, enabling attackers to inject unsigned assertions that appear valid. This flaw allows an attacker with a valid IdP-signed assertion to authenticate as any arbitrary user.
AI Analysis
Technical Summary
The vulnerability in Net::SAML2 (CVE-2026-18092) is due to improper verification of cryptographic signatures (CWE-347). The new_from_xml function reads identity attributes such as NameID and SessionIndex using document-wide XPath queries, which select the first matching element in document order rather than the element covered by the verified signature. Although handle_response confirms the presence of a signature and validates the certificate chain, XML::Sig verifies only the element referenced by the signature's URI. This allows an attacker to prepend an unsigned, attacker-controlled assertion earlier in the document, which is returned by the XPath queries despite not being signed. Consequently, callers passing untrusted Responses to new_from_xml may accept identity fields from unsigned assertions, enabling authentication bypass as arbitrary users.
Potential Impact
An attacker who possesses any valid IdP-signed assertion can craft a SAML Response containing an unsigned assertion with attacker-controlled identity fields placed earlier in document order. Because the signature verification only covers the signed assertion, the unsigned assertion is accepted by new_from_xml due to document-wide XPath queries. This results in authentication bypass, allowing the attacker to impersonate arbitrary users. The vulnerability impacts the integrity of SAML authentication and can lead to unauthorized access.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid passing untrusted SAML Responses to new_from_xml or implement additional validation to ensure identity fields are extracted only from the signed assertion subtree. Monitor vendor communications for an official fix or update.
CVE-2026-18092: CWE-347 Improper Verification of Cryptographic Signature in TIMLEGGE Net::SAML2
Description
Net::SAML2 versions before 0.86 for Perl contain a vulnerability that allows SAML authentication bypass via XML signature wrapping. The issue arises because the new_from_xml function reads identity fields using document-wide XPath expressions rather than restricting to the signed subtree, enabling attackers to inject unsigned assertions that appear valid. This flaw allows an attacker with a valid IdP-signed assertion to authenticate as any arbitrary user.
CVSS v3.1
Score 8.1high
Affected software
TIMLEGGE
Net::SAML2
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Net::SAML2 (CVE-2026-18092) is due to improper verification of cryptographic signatures (CWE-347). The new_from_xml function reads identity attributes such as NameID and SessionIndex using document-wide XPath queries, which select the first matching element in document order rather than the element covered by the verified signature. Although handle_response confirms the presence of a signature and validates the certificate chain, XML::Sig verifies only the element referenced by the signature's URI. This allows an attacker to prepend an unsigned, attacker-controlled assertion earlier in the document, which is returned by the XPath queries despite not being signed. Consequently, callers passing untrusted Responses to new_from_xml may accept identity fields from unsigned assertions, enabling authentication bypass as arbitrary users.
Potential Impact
An attacker who possesses any valid IdP-signed assertion can craft a SAML Response containing an unsigned assertion with attacker-controlled identity fields placed earlier in document order. Because the signature verification only covers the signed assertion, the unsigned assertion is accepted by new_from_xml due to document-wide XPath queries. This results in authentication bypass, allowing the attacker to impersonate arbitrary users. The vulnerability impacts the integrity of SAML authentication and can lead to unauthorized access.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid passing untrusted SAML Responses to new_from_xml or implement additional validation to ensure identity fields are extracted only from the signed assertion subtree. Monitor vendor communications for an official fix or update.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-07-28T16:46:56.926Z
- State
- PUBLISHED
Threat ID: 6a7098b0bf32cb7a34a822a9
Added to database: 08/03/2026, 13:33:36 UTC
Last enriched: 08/10/2026, 14:55:11 UTC
Last updated: 09/17/2026, 22:01:33 UTC
Views: 35
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.