lightSAML Signature Wrapping Authentication Bypass (CVE-2026-63182)
Detects exploitation attempts and vulnerable deployments of the lightSAML PHP SAML library (litesaml/lightsaml) affected by CVE-2026-63182, a signature wrapping (XML Signature Wrapping / XSW) vulnerability. The flaw (CWE-347, Improper Verification of Cryptographic Signature) lets an attacker wrap a validly-signed SAML assertion around a forged, attacker-controlled assertion so that lightSAML validates the signature on the legitimate element while consuming the attacker's unsigned assertion. This yields full SAML SSO authentication bypass / identity impersonation. Affected: >=5.0.0,<5.0.1 and >=4.0.0,<4.7.1; fixed in 4.7.1 and 5.0.1. Detection focuses on anomalous SAML Response structure (multiple Assertion/Signature elements, mismatched signed vs consumed assertion IDs), high-privilege logons immediately following SAML SSO, and inventory of vulnerable library versions.
Based on GHSA-w553-pwx6-3mg9, lightSAML Signature wrapping bypass
Vulnerability Intelligence
Public PoCAffected Software
- Vendor
- composer
- Product
- litesaml/lightsaml
- Versions
- >= 5.0.0, < 5.0.1, >= 4.0.0, < 4.7.1
Weakness (CWE)
Timeline
- Disclosed
- November 16, 2026
References & Proof of Concept
- https://github.com/litesaml/lightsaml/security/advisories/GHSA-w553-pwx6-3mg9
- https://nvd.nist.gov/vuln/detail/CVE-2026-63182
- https://github.com/litesaml/lightsaml/pull/113
- https://github.com/litesaml/lightsaml/pull/122
- https://github.com/litesaml/lightsaml/commit/230e62d1325f2cbcaac814b78409775f7a8806a2
- https://github.com/litesaml/lightsaml/commit/3af82bf2f3865e6aafeeb1a97c97b383b8bb7b00
- https://github.com/litesaml/lightsaml/releases/tag/4.7.1
- https://github.com/litesaml/lightsaml/releases/tag/5.0.1
- https://github.com/advisories/GHSA-w553-pwx6-3mg9
What is CVE-2026-63182 lightSAML Signature Wrapping Authentication Bypass (CVE-2026-63182)?
lightSAML Signature Wrapping Authentication Bypass (CVE-2026-63182) (CVE-2026-63182) maps to the Initial Access and Credential Access tactics — the adversary is trying to get into your network in MITRE ATT&CK.
This page provides production-ready detection logic for lightSAML Signature Wrapping Authentication Bypass (CVE-2026-63182), covering the data sources and telemetry it touches: IIS W3C Logs, Web Server Logs. The queries below are rated high severity at medium confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.
MITRE ATT&CK
- Tactic
- Initial Access Credential Access
// df00tech DF00-1a15482112 · https://df00tech.com/detections/CVE-2026-63182 · licence: https://df00tech.com/detections/licence
// Detect anomalous SAML Response structures indicative of XML Signature Wrapping (XSW) against lightSAML
let SamlLogs = W3CIISLog
| where csUriStem has_any ("/saml", "/acs", "/sso", "/consume", "/lightsaml")
| where csMethod == "POST";
SamlLogs
| extend RawBody = tostring(column_ifexists("csReferer", "")), Client = cIP
| where csUriQuery has "SAMLResponse" or csUriStem has "acs"
| summarize Requests = count(), PathsHit = make_set(csUriStem), UAs = make_set(csUserAgent) by cIP, bin(TimeGenerated, 5m)
| where Requests >= 3
| project TimeGenerated, SourceIP = cIP, Requests, PathsHit, UAs
| order by Requests desc Flags bursts of POSTs to SAML assertion consumer service (ACS) endpoints carrying SAMLResponse payloads, a precursor to iterative XSW probing. Pair with application logs that parse SAMLResponse to confirm multiple Assertion/Signature elements.
Data Sources
Required Tables
False Positives
- Legitimate SSO bursts from shared NAT/proxy egress IPs during peak login times
- SAML integration testing or SSO health-check monitors hitting the ACS endpoint repeatedly
- Load balancer or WAF health probes against /sso or /acs paths
Query fingerprint DF00-1a15482112 · licence
Sigma logsource & community rules
The detection logic for lightSAML Signature Wrapping Authentication Bypass (CVE-2026-63182) (CVE-2026-63182) above is provided in a vendor-neutral
form so you can deploy it on any SIEM. The same logic is shipped here as native
KQL (Microsoft Sentinel / Defender), SPL (Splunk), Elastic (Elastic Security (EQL)), QRadar (IBM QRadar (AQL)), Sumo (Sumo Logic CSE), YARA-L (Google Chronicle / SecOps), LogScale (CrowdStrike LogScale (CQL)) queries. In Sigma terms, this detection targets the
following logsource:
logsource:
product: windows Browse the community-maintained Sigma rules for this technique:
Platform-specific guides for CVE-2026-63182
References (9)
- https://github.com/litesaml/lightsaml/security/advisories/GHSA-w553-pwx6-3mg9
- https://nvd.nist.gov/vuln/detail/CVE-2026-63182
- https://github.com/litesaml/lightsaml/pull/113
- https://github.com/litesaml/lightsaml/pull/122
- https://github.com/litesaml/lightsaml/commit/230e62d1325f2cbcaac814b78409775f7a8806a2
- https://github.com/litesaml/lightsaml/commit/3af82bf2f3865e6aafeeb1a97c97b383b8bb7b00
- https://github.com/litesaml/lightsaml/releases/tag/4.7.1
- https://github.com/litesaml/lightsaml/releases/tag/5.0.1
- https://github.com/advisories/GHSA-w553-pwx6-3mg9
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.
- Test 1 Enumerate installed lightSAML version (vulnerable inventory)
Expected signal: Process execution of composer/grep reading composer.lock; file read access to the project directory.
- Test 2 Simulate XSW SAMLResponse with duplicate Assertion
Expected signal: POST to /acs with a SAMLResponse parameter whose decoded body contains two <saml:Assertion> elements.
- Test 3 Simulate unsigned-assertion wrapping attempt
Expected signal: POST to /acs with a decoded SAMLResponse containing a Signature not bound to the Assertion element.
Response Playbook
Triage
- Identify the application using lightSAML and determine its installed version via `composer show litesaml/lightsaml` or inspecting composer.lock; confirm whether it is >=5.0.0,<5.0.1 or >=4.0.0,<4.7.1 (vulnerable).
- Retrieve the raw SAMLResponse from application/web logs for the flagged request, base64-decode it, and inspect for multiple <saml:Assertion> or <ds:Signature> elements, or an Assertion whose ID differs from the signed element's Reference URI.
- Determine which identity the application granted the session to and compare it against the subject of the cryptographically-signed assertion element; a mismatch confirms a successful wrapping bypass.
- Review subsequent authenticated actions for the impersonated identity, focusing on privileged or administrative operations.
Containment
- Immediately upgrade lightSAML to 4.7.1 or 5.0.1 (or later) which enforce that the signed element is the one consumed.
- Invalidate all active SSO sessions for the affected application and force re-authentication; revoke any tokens/cookies issued since the earliest suspicious SAMLResponse.
- If upgrade cannot be applied immediately, place the SP behind a WAF/reverse-proxy rule that rejects SAMLResponses containing more than one Assertion or Signature element and temporarily restrict ACS access to the IdP source range.
Evidence Collection
- Preserve the full raw (base64 and decoded) SAMLResponse payloads, web server access logs, and application SAML processing logs for the affected time window.
- Capture the composer.lock / installed lightSAML version and the SP's SAML configuration (expected signing certificate, ACS URL, clock settings) for the investigation record.
- Export authentication and authorization audit logs showing the sessions and actions tied to the granted (impersonated) identity.
Escalation Criteria
- ! Escalate to incident response if a signed-vs-consumed assertion mismatch is confirmed, indicating a successful authentication bypass and identity impersonation.
- ! Escalate to the application/business owner if the impersonated identity performed privileged, financial, or data-exfiltration actions.
- ! Escalate for broader hunt if multiple source IPs or multiple SP applications sharing the lightSAML dependency show the same anomalous SAMLResponse structures.
Investigation Guide
Forensic Artifacts
- >
Raw base64 SAMLResponse payloads in web/application logs containing multiple Assertion or Signature elements - >
Mismatch between the ID referenced by the ds:Signature Reference URI and the Assertion ID actually consumed by the SP - >
Application session store entries binding a session to an identity not present in the signed assertion - >
lightSAML version string in composer.lock indicating an affected release
Tuning Guidance
Baseline the normal number of Assertion and Signature elements for each federated IdP, some vendors legitimately sign both the Response and the Assertion (two Signatures) or wrap an EncryptedAssertion. Allowlist known IdP egress IPs and SSO monitoring agents to reduce volume-based false positives, and prioritize alerts where the signed element ID does not match the consumed assertion ID, which is the definitive XSW indicator.
Hunting Queries
Hunt for SAMLResponse payloads with anomalous Assertion/Signature element counts and high-volume ACS POST bursts across the environment.
// df00tech DF00-1a15482112 · https://df00tech.com/detections/CVE-2026-63182 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem has_any ("/acs","/saml","/sso","/consume") and csMethod == "POST" | where csUriQuery has "SAMLResponse" or csUriStem has "acs" | summarize count() by cIP, bin(TimeGenerated, 1h) | where count_ > 10 ``` df00tech DF00-1a15482112 · https://df00tech.com/detections/CVE-2026-63182 · licence: https://df00tech.com/detections/licence ```
index=web (uri_path="*/acs*" OR uri_path="*/saml*") method=POST | rex field=form_data "SAMLResponse=(?<b>[^&]+)" | eval x=base64decode(urldecode(b)) | eval ac=mvcount(split(x,"<saml:Assertion"))-1, sc=mvcount(split(x,"<ds:Signature"))-1 | where ac>1 OR sc>1 | table _time src_ip ac sc Atomic Red Team Tests
Checks whether the lightSAML library present on a host is within the CVE-2026-63182 affected ranges.
Command
composer show litesaml/lightsaml 2>/dev/null | grep -i versions; grep -A2 'litesaml/lightsaml' composer.lock 2>/dev/null | grep version Cleanup
echo 'no cleanup required (read-only inventory)' Expected Telemetry
Process execution of composer/grep reading composer.lock; file read access to the project directory.
Expected Detection
Not a detection event itself; feeds vulnerable-version inventory used to scope the detection.
Posts a crafted SAMLResponse containing two Assertion elements (one signed wrapper, one unsigned forged) to the ACS endpoint in a lab to trigger structural detection.
Command
B64=$(printf '<samlp:Response><saml:Assertion ID="signed"><ds:Signature/></saml:Assertion><saml:Assertion ID="forged"><saml:Subject>[email protected]</saml:Subject></saml:Assertion></samlp:Response>' | base64 -w0); curl -sk -X POST "https://sp.lab.test/acs" --data-urlencode "SAMLResponse=${B64}" Cleanup
echo 'no cleanup required (no persistent state created on attacker host)' Expected Telemetry
POST to /acs with a SAMLResponse parameter whose decoded body contains two <saml:Assertion> elements.
Expected Detection
SPL/Chronicle/CQL rules flag assertion_count > 1 in the decoded SAMLResponse.
Posts a SAMLResponse where the single Assertion has no corresponding Signature, simulating a wrapping payload that relies on a signature elsewhere in the document.
Command
B64=$(printf '<samlp:Response><ds:Signature>wrapper</ds:Signature><saml:Assertion ID="forged"><saml:Subject>[email protected]</saml:Subject></saml:Assertion></samlp:Response>' | base64 -w0); curl -sk -X POST "https://sp.lab.test/acs" --data-urlencode "SAMLResponse=${B64}" Cleanup
echo 'no cleanup required' Expected Telemetry
POST to /acs with a decoded SAMLResponse containing a Signature not bound to the Assertion element.
Expected Detection
SPL rule flags assertion_count >= 1 with signature_count == 0 on the Assertion, matching the wrapping heuristic.
Related Detections
Related Techniques
Same Tactic: Initial Access
Blog posts about this detection
Browse by tactic
- Reconnaissance TA0043
- Resource Development TA0042
- Initial Access TA0001
- Execution TA0002
- Persistence TA0003
- Privilege Escalation TA0004
- Stealth TA0005
- Defense Impairment TA0112
- Credential Access TA0006
- Discovery TA0007
- Lateral Movement TA0008
- Collection TA0009
- Command and Control TA0011
- Exfiltration TA0010
- Impact TA0040