Dev.to Security 🔐 Cybersecurity 👁 0 📖 2 min read

CVE-2026-63182: CVE-2026-63182: XML Signature Wrapping Authentication Bypass in LightSAML

CVE-2026-63182: XML Signature Wrapping Authentication Bypass in LightSAML Vulnerability ID: CVE-2026-63182 CVSS Score: 8.1 Published: 2026-11-16 CVE-2026-63182 is a high-severity XML Signature Wrapping (XSW) vulnera

CVE-2026-63182: XML Signature Wrapping Authentication Bypass in LightSAML

Vulnerability ID: CVE-2026-63182
CVSS Score: 8.1
Published: 2026-11-16

CVE-2026-63182 is a high-severity XML Signature Wrapping (XSW) vulnerability in LightSAML (litesaml/lightsaml), a PHP library implementing SAML 2.0 data models and cryptographic verification. An architectural discrepancy between how LightSAML deserializes direct child assertions and how the underlying robrichards/xmlseclibs library resolves XML document fragment identifiers allows an attacker with a valid signed assertion to forge arbitrary SAML identity claims and bypass authentication.

TL;DR

A discrepancy between DOM traversal in LightSAML and XPath ID resolution in xmlseclibs enables XML Signature Wrapping (XSW). Attackers possessing a single valid signed assertion can embed it inside a samlp:Extensions element while injecting a forged assertion with an identical ID as a direct child of samlp:Response, achieving complete authentication bypass and privilege escalation.

⚠️ Exploit Status: POC

Technical Details

  • Vulnerability Class: XML Signature Wrapping (XSW) / CWE-347
  • Affected Component: litesaml/lightsaml (SignatureXmlReader & Response::deserialize)
  • Attack Vector: Network (HTTP POST SAMLResponse)
  • CVSS v3.1 Score: 8.1 High (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N)
  • EPSS Score: 0.19% (8.78th Percentile)
  • Security Impact: Authentication Bypass & Arbitrary User Impersonation
  • Patched Versions: 4.7.1, 5.0.1
  • CISA KEV Status: Not Listed

Affected Systems

  • litesaml/lightsaml
  • lightsaml: < 4.7.1 (Fixed in: 4.7.1)
  • lightsaml: >= 5.0.0, < 5.0.1 (Fixed in: 5.0.1)

Code Analysis

Commit: 230e62d

Add assertNoXmlSignatureWrapping() in SignatureXmlReader to prevent XSW attacks on the 5.x branch (PR #113).

Commit: 3af82bf

Backport assertNoXmlSignatureWrapping() fix to the 4.x maintenance branch (PR #122).

Exploit Details

  • GitHub: Unit test suites included in the patch commit demonstrate the XML Signature Wrapping payload structure.

Mitigation Strategies

  • Upgrade litesaml/lightsaml to patched versions (4.7.1+ or 5.0.1+) that enforce parent-enclosure ID binding and document-wide ID uniqueness.
  • Enforce strict XML Schema Definition (XSD) validation against official OASIS SAML 2.0 schemas prior to deserialization to reject duplicate xs:ID attributes.
  • Mandate both outer samlp:Response signing and inner saml:Assertion signing at the Identity Provider and Service Provider levels.

Remediation Steps:

  1. Audit composer.lock files across all PHP repositories to identify installations of litesaml/lightsaml < 4.7.1 or 5.0.0.
  2. Run 'composer require litesaml/lightsaml:^4.7.1' (for 4.x) or 'composer require litesaml/lightsaml:^5.0.1' (for 5.x) to apply the security patch.
  3. Verify that custom signature validation pipelines catch LightSamlSecurityException and reject authentication attempts upon exception triggers.
  4. Enable XSD schema validation on inbound SAMLResponse payloads before invoking LightSAML deserialization.

References

Read the full report for CVE-2026-63182 on our website for more details including interactive diagrams and full exploit analysis.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.