GitHub Advisoryadvisory · Go

GHSA-3w4h-g9f5-j84p Casdoor does not validate the AudienceRestriction element in SAML assertions

CRITICAL Published 2026-05-28 Modified 2026-07-02 Official page ↗
Aliases
CVE-2026-9093
Ecosystem
Go
Packages
github.com/casdoor/casdoor
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Reviewed
2026-07-02

Affected packages

• Go github.com/casdoor/casdoor: <= 1.1000.1-0.20260321120606-239e8bd69487 (no fix yet)

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.

Related

Alias · CVE (1)

  • CVE-2026-9093 In Casdoor versions 2.362.0 and earlier, the SAML service provider implementation does not validate the AudienceRestriction element in SAML… vulnerability

References