litesaml/lightsaml is vulnerable to Improper Verification of Cryptographic Signature
81
CVE Score
High
Improper Verification of Cryptographic Signature
Before the fix, SignatureXmlReader::validate() only checked the digest and signature that xmlseclibs resolved with a document-wide ID lookup, with no check that the signature Reference URI points to the element containing the signature. A client who could submit one captured genuine signed assertion could bury its bytes in samlp:Extensions and add a forged unsigned assertion with the same ID and a copied signature; validation passed on the hidden signed bytes while the unsigned forged claims were consumed by services that validate inbound SAML response assertions. The fix rejects responses whose signature Reference URI does not match the enclosing element's ID or whose ID appears more than once in the document.
Upgrade the litesaml/lightsaml package to a fixed release on your branch: 5.0.1, 4.7.1.
You are affected if you are using a version that falls within the vulnerable range and validate inbound SAML response assertions through SignatureXmlReader::validate() in a service that accepts SAML responses from external clients.
4.0.0 - 4.7.0
Fixed in 4.7.15.0.0 - 5.0.0
Fixed in 5.0.1litesaml/lightsaml is vulnerable to Improper Verification of Cryptographic Signature in versions 5.0.0 - 5.0.0 and 4.0.0 - 4.7.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.