All reports
Critical

Casdoor does not validate the AudienceRestriction element in SAML assertions

Affected versions

Version ranges need review.

Affected versions
<= 1.1000.1-0.20260321120606-239e8bd69487
Fixed version
Not reported
Affected versions
*
Fixed version
Not reported

Exploitation

CVE-2026-9093

Probability of exploitation in the next 30 days: 0.37%

FIRST EPSS · 2026-11-22

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.

Links