lightsaml allows Signature wrapping bypass
High severity. Published 16 November 2026. Update litesaml/lightsaml to the fixed version of your branch (5.0.1, 4.7.1): composer update litesaml/lightsaml.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| litesaml/lightsaml (opens in a new tab) | >= 5.0.0, < 5.0.1 | >= 4.0.0, < 4.7.1 | 5.0.1, 4.7.1 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show litesaml/lightsaml
composer auditAdvisory details
| Severity | HighCVSS 8.1 |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-63182 (opens in a new tab) |
| GHSA | GHSA-w553-pwx6-3mg9 (opens in a new tab) |
| Weakness | CWE-347 |
What the advisory says
Summary
LightSaml 5.0.0 (latest release; also confirmed on 4.6.1) validates an inbound samlp:Response by collecting its direct-child saml:Assertion elements and validating each one's ds:Signature via robrichards/xmlseclibs. The two layers disagree on which element a signature actually covers: LightSaml reads claims from the assertion node it collected, while xmlseclibs resolves the signed Reference URI="id" with a document-wide //[@Id] XPath that returns the first ID-bearing element anywhere in the document.
An attacker who has captured one genuine signed assertion can exploit this to surface attacker-authored, unsigned claims.
Details
Source: GHSA-w553-pwx6-3mg9 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .