CVE-2022-41912: Vulnerability in github.com/crewjam/saml - Signature Bypass via Multiple Assertion Elements

github.com/crewjam/saml Updated 02 Oct 2025

Summary

29/11/2022
Yes i
Critical
9.1

CVE-2022-41912: Impact The crewjam/saml go library is vulnerable to an authentication bypass when processing SAML responses containing multiple Assertion elements. Affects github.com/crewjam/saml versions < 0.4.9. Fixed in 0.4.9. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 assertions, validate signatures, and extract relevant information. However, a vulnerability has been discovered in the library that allows for signature bypass when processing SAML responses containing multiple Assertion elements.

Vulnerability Detail

The vulnerability in github.com/crewjam/saml arises from improper authentication handling. When a SAML response contains multiple Assertion elements, the library fails to properly authenticate the assertions, leading to an authentication bypass. This means that an attacker could craft a malicious SAML response with multiple assertions and bypass the authentication process, gaining unauthorized access to the system. The impact of this vulnerability is critical, as it undermines the security of SAML-based authentication and authorization systems.

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 →

Workaround

There is no known workaround for this vulnerability. It is essential to update the github.com/crewjam/saml package to the fixed version to address the issue.

Conclusion

The vulnerability in github.com/crewjam/saml allows for an authentication bypass in SAML-based systems. It is crucial to update the package to version 0.4.9 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/crewjam/saml →

Share this vulnerability

FAQ

The impact of this vulnerability is critical, as it allows for an authentication bypass in SAML-based systems, potentially granting unauthorized access to sensitive resources.

To fix this vulnerability, update the github.com/crewjam/saml package to version 0.4.9 or later.

No, there is no known workaround for this vulnerability. Updating the package to the fixed version is the recommended solution.

This 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.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/crewjam/saml.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback