CVE-2026-9093: Casdoor SAML AudienceRestriction Validation Bypass Vulnerability

github.com/casdoor/casdoor Updated 03 Jul 2026

Summary

28/05/2026
No i
Critical
9.8

CVE-2026-9093: Casdoor does not validate the AudienceRestriction element in SAML assertions. Affects github.com/casdoor/casdoor versions < 1.1000.1-0.20260321120606-239e8bd69487. No fix is published. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Casdoor is an open-source identity and access management platform that provides authentication and authorization services for applications. It supports various protocols, including SAML (Security Assertion Markup Language), which is widely used for single sign-on (SSO) implementations. The platform is designed to facilitate secure user management and streamline access control across different services. However, certain versions of Casdoor have a critical vulnerability related to the validation of SAML assertions, specifically the AudienceRestriction element, which can lead to unauthorized access.

Vulnerability Detail

In Casdoor versions 2.362.0 and earlier, the SAML service provider implementation fails to validate the AudienceRestriction element in SAML assertions. The buildSp function in object/saml_sp.go does not set the AudienceURI on the gosaml2 SAMLServiceProvider struct and neglects to inspect WarningInfo.NotInAudience. This oversight allows assertions intended for other service providers to be accepted by Casdoor, potentially leading to unauthorized access and data breaches.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, ensure that your SAML assertions are strictly validated before being processed by Casdoor. You can implement additional checks in your application to verify the AudienceRestriction element manually until you can upgrade to a secure version.

Conclusion

The vulnerability identified as CVE-2026-9093 in Casdoor poses a significant risk due to its failure to validate the AudienceRestriction element in SAML assertions. Users are strongly advised to update to a secure version to mitigate potential unauthorized access risks. Utilizing tools like Vulert can help in monitoring and managing such vulnerabilities effectively.

See every vulnerability recorded for github.com/casdoor/casdoor →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 9.8, indicating a critical level of severity.

Casdoor versions 2.362.0 and earlier are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The vulnerability can lead to unauthorized access to sensitive data and services, as it allows SAML assertions from other service providers to be accepted.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software using just the Gopkg.lock file.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/casdoor/casdoor.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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