CVE-2026-63182: Signature Wrapping Bypass in lightSAML Lets Attackers Forge SAML Identities
What's Happening
CVE-2026-63182 is an XML Signature Wrapping (XSW) vulnerability in the lightSAML PHP library (litesaml/lightsaml), tracked under CWE-347 (Improper Verification of Cryptographic Signature). The core flaw: lightSAML validates the cryptographic signature on one SAML Assertion element but then consumes a different, attacker-controlled assertion elsewhere in the same SAML Response. By wrapping a legitimate, validly-signed assertion around a forged, unsigned assertion, an attacker can craft a SAML Response where the signature check passes against the real assertion while the application processes the forged one.
The impact is severe: full SAML SSO authentication bypass and identity impersonation. An attacker who can submit a SAML Response to a relying party (for example via a captured or replayed assertion template) can assert arbitrary identities, including privileged accounts, without possessing valid credentials or a legitimate signing key.
Affected Software
- Library:
litesaml/lightsaml(Composer/PHP ecosystem) - Affected versions: >=5.0.0,<5.0.1 and >=4.0.0,<4.7.1
- Fixed in: 4.7.1 and 5.0.1
Any PHP application using lightSAML as its SAML SSO consumer (SP-side assertion validation) in the affected version ranges is exposed, regardless of the identity provider in use.
Exploitation Status
This vulnerability has a public proof-of-concept (CVSS 8.1), disclosed 2026-11-16. Signature wrapping attacks against SAML are a well-understood exploitation class with a track record of real-world abuse against SSO stacks, so defenders should treat public PoC availability as a strong signal to prioritize patching and detection rather than waiting for in-the-wild confirmation.
How Our Detection Works
We ship coverage across Microsoft Sentinel (KQL), Splunk (SPL), Elastic (EQL), QRadar (AQL), Sumo Logic, Chronicle (YARA-L), and CrowdStrike (CQL). The detection logic targets the structural fingerprint of an XSW attack rather than any single payload signature:
- Anomalous SAML Response structure: flags responses containing multiple
AssertionorSignatureelements, which is atypical for legitimate IdP-issued responses. - Signed-vs-consumed mismatch: correlates the assertion ID that was cryptographically signed against the assertion ID actually consumed by the application, surfacing the core wrapping tell.
- Post-SSO privilege anomalies: watches for high-privilege logons immediately following SAML SSO events, a behavioral indicator consistent with successful identity forgery.
- Vulnerable library inventory: identifies deployments still running affected lightSAML versions (<4.7.1 or <5.0.1) so they can be prioritized for patching.
Remediation
Upgrade litesaml/lightsaml to 4.7.1 or 5.0.1, whichever matches your major version. Full detection queries, investigation guidance, and atomic tests for CVE-2026-63182 are available on the detection detail page.