# CVE-2026-9093: Casdoor SAML audience restriction bypass

Source: https://junglewise.ai/threats/cve-2026-9093-casdoor-saml-audience-restriction-bypass  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-28. Updated: 2026-07-02  
License: CC BY 4.0 with a link back

CVE-2026-9093 · Severity: critical · CVSS 9.8 · Published 2026-05-28

Casdoor, an open-source identity and access management platform, fails to properly verify the intended recipient of security tokens (SAML assertions). This flaw allows an attacker to take a security token intended for a different service and reuse it to gain unauthorized access to Casdoor. Successful exploitation could lead to full account takeover, including administrative accounts, and unauthorized access to sensitive corporate data.

Technologies: [github.com/casdoor/casdoor (Go)](https://junglewise.ai/threats/technologies/github-com-casdoor-casdoor). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2026-9093 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-9093 being exploited in the wild.

**How severe is CVE-2026-9093?** Critical severity, with a CVSS score of 9.8, published 28 May 2026.

**Which products and versions are affected?** github.com/casdoor/casdoor (Go) <= 1.1000.1-0.20260321120606-239e8bd69487, SEMVER:introduced=0, SEMVER:introduced=0,last_affected=1.1000.1-0.20260321120606-239e8bd69487.

**Is there a fix for CVE-2026-9093?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-9093 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-9093?** Check whether you run github.com/casdoor/casdoor (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A vulnerability exists in Casdoor's SAML service provider implementation due to missing validation of the AudienceRestriction element. The 'buildSp' function in 'object/saml_sp.go' fails to set the 'AudienceURI' on the 'gosaml2.SAMLServiceProvider' struct and does not inspect 'WarningInfo.NotInAudience'. Consequently, Casdoor will accept SAML assertions issued by an Identity Provider (IdP) for entirely different service providers. An unauthenticated remote attacker can exploit this to achieve authentication bypass by presenting a valid assertion intended for another application. As of the advisory date, no patch is available.

## Affected products

- Casdoor Casdoor <= 2.362.0

## Identifiers

- CVE-2026-9093
- GHSA-3w4h-g9f5-j84p
- GO-2026-5894

## Timeline

- 2026-05-28: advisory: Initial disclosure by CERT/CC and GitHub Advisory Database
- 2026-05-28: disclosed

## References

- [https://kb.cert.org/vuls/id/780781](https://kb.cert.org/vuls/id/780781)

## Related threats

- [Casdoor SAML response validation bypass in auth controller](https://junglewise.ai/threats/cve-2026-9098-casdoor-saml-response-validation-bypass-in-auth-controller)
- [Casdoor missing JWT revocation check in token exchange](https://junglewise.ai/threats/cve-2026-9097-casdoor-missing-jwt-revocation-check-in-token-exchange)
- [Casdoor SAML assertion time bound enforcement failure](https://junglewise.ai/threats/cve-2026-9096-casdoor-saml-assertion-time-bound-enforcement-failure)
- [Casdoor cross-organization token exchange privilege escalation](https://junglewise.ai/threats/cve-2026-9094-casdoor-cross-organization-token-exchange-privilege-escalation)
- [Casdoor MFA bypass in social-login binding flow](https://junglewise.ai/threats/cve-2026-9091-casdoor-mfa-bypass-in-social-login-binding-flow)
