CVE-2022-41912: Vulnerability in github.com/crewjam/saml - Signature Bypass via Multiple Assertion Elements
Summary
CVE-2022-41912: Authentication bypass in github.com/crewjam/saml. Affects github.com/crewjam/saml versions < 0.4.9. Fixed in 0.4.9. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The github.com/crewjam/saml package is a Go library that provides functionality for processing SAML (Security Assertion Markup Language) responses. SAML is an XML-based standard for exchanging authentication and authorization data between parties. The package allows applications to handle SAML responses and extract relevant information for authentication purposes. However, a vulnerability has been discovered in the library that allows for signature bypass via multiple Assertion elements.
Vulnerability Detail
The vulnerability in github.com/crewjam/saml arises from improper authentication when processing SAML responses containing multiple Assertion elements. This flaw can be exploited to bypass authentication and potentially gain unauthorized access to protected resources. An attacker could craft a malicious SAML response with multiple Assertion elements, tricking the application into accepting the response as valid without proper verification. This could lead to unauthorized access, privilege escalation, or other security breaches.
How To Fix
Latest published version: v0.5.1 as of 23 Oct 2026
go get github.com/crewjam/saml@v0.5.1
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
0.4.9
This is the first release that contains the fix.
go get github.com/crewjam/saml@v0.4.9
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Conclusion
The vulnerability in github.com/crewjam/saml that allows for signature bypass via multiple Assertion elements has been addressed in version 0.4.9. It is crucial to update to the latest version to ensure the security of the application. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for github.com/crewjam/saml →
FAQ
The vulnerability allows for authentication bypass, potentially leading to unauthorized access to protected resources.
An attacker can craft a malicious SAML response with multiple Assertion elements to trick the application into accepting it as valid without proper authentication.
Yes, the vulnerability has been fixed in version 0.4.9 of the github.com/crewjam/saml package.
The vulnerability was reported by Felix Wilhelm from Google Project Zero.
SAML (Security Assertion Markup Language) is an XML-based standard for exchanging authentication and authorization data between parties.
References
Related vulnerabilities
Recent vulnerabilities recorded for github.com/crewjam/saml.