All vulnerabilities

Packagist

CVE-2026-63182

lightsaml allows Signature wrapping bypass

Severity
High 8.1
Published
16 Nov 2026
Last changed
16 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
4.7.1, 5.0.1
Exploit chance
0.2% in the next 30 daysHigher than 15% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Improper verification of a cryptographic signature (CWE-347)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Also known as
GHSA-w553-pwx6-3mg9
Sources
OSV.dev and GitHub

Description

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.

Response::deserialize collects assertions with manyElementsFromXml, whose relative XPath saml:Assertion matches only direct children of the Response. Each collected assertion is validated independently by AssertionSignatureValidatorAction against the out-of-band trusted IdP credential (resolved by Issuer entityId, never from the document):

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
litesaml/lightsamlPackagist · osv:Packagist:litesaml/lightsaml
  • From 4.0.0 before 4.7.1
  • From 5.0.0 before 5.0.1

About litesaml/lightsaml

Monthly downloads (Packagist)
432,000Packagist, 24 Nov 2026
Total downloads (Packagist)
8,054,330Packagist, 24 Nov 2026

This is the only vulnerability in litesaml/lightsaml in our list.

References