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:
- Audit composer.lock files across all PHP repositories to identify installations of litesaml/lightsaml < 4.7.1 or 5.0.0.
- 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.
- Verify that custom signature validation pipelines catch LightSamlSecurityException and reject authentication attempts upon exception triggers.
- Enable XSD schema validation on inbound SAMLResponse payloads before invoking LightSAML deserialization.
References
- GitHub Security Advisory GHSA-w553-pwx6-3mg9
- NVD - CVE-2026-63182
- CVE.org Record - CVE-2026-63182
- CVEList V5 JSON Record - CVE-2026-63182
- LightSAML Pull Request #113 (5.x Fix)
- LightSAML Pull Request #122 (4.x Backport)
- LightSAML Patch Commit (5.0.1)
- LightSAML Patch Commit (4.7.1)
- LightSAML Release 4.7.1
- LightSAML Release 5.0.1
- Shodan CVEDB - CVE-2026-63182
Read the full report for CVE-2026-63182 on our website for more details including interactive diagrams and full exploit analysis.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.