CVE-2026-9093
Casdoor does not validate the AudienceRestriction element in SAML assertions
Severity by source
Trivy's own label is CRITICAL. Rated critical by GHSA.
Description
In Casdoor versions 2.362.0 and earlier, the SAML service provider implementation does not validate the AudienceRestriction element in SAML assertions. The buildSp function in object/saml_sp.go never sets AudienceURI on the gosaml2 SAMLServiceProvider struct and never inspects WarningInfo.NotInAudience. This allows assertions issued for other service providers to be accepted by Casdoor.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| go::GitHub Security Advisory Go | github.com/casdoor/casdoor | no fix listed |