Advisory

GHSA-3w4h-g9f5-j84p

Also known as: CVE-2026-9093, GO-2026-5894

Summary

Casdoor does not validate the AudienceRestriction element in SAML assertions

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-05-28 18:30 UTC
Modified
2026-07-07 16:11 UTC

Affected packages and fixes

github.com/casdoor/casdoor

Go · All systems

Affected

  • introduced 0, last affected 1.1000.1-0.20260321120606-239e8bd69487 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences