GHSA-mfvp-7p3v-x9mh

Suggest an improvement
Source
https://github.com/advisories/GHSA-mfvp-7p3v-x9mh
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-mfvp-7p3v-x9mh/GHSA-mfvp-7p3v-x9mh.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-mfvp-7p3v-x9mh
Aliases
Published
2026-05-28T18:30:32Z
Modified
2026-07-07T16:11:24Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Casdoor SAML callback handler accepts any well-formed SAMLResponse sent to /api/acs without verifying that it corresponds to an AuthnRequest
Details

In Casdoor versions 2.362.0 and earlier, the SAML callback handler in controllers/auth.go accepts any well-formed SAMLResponse sent to /api/acs without verifying that it corresponds to an AuthnRequest previously issued by Casdoor. Additionally, if an administrator disables or deletes an IdP (Identity Provider) after a SAML flow has started, the handler still processes the response using the provider snapshot loaded at the start of the request. As a result, an attacker controlling a registered upstream IdP can send unsolicited SAML responses, or replay a legitimately captured response in a different session or after the original flow has ended. In both cases, Casdoor accepts the response and issues a session, enabling persistent unauthorized access.

Database specific
{
    "cwe_ids":  [
        "CWE-488"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-07-02T18:37:59Z",
    "nvd_published_at":  "2026-05-28T17:16:34Z",
    "severity":  "CRITICAL"
}
References

Affected packages

Go / github.com/casdoor/casdoor

Package

Name
github.com/casdoor/casdoor
View open source insights on deps.dev
Purl
pkg:golang/github.com/casdoor/casdoor

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
1.1000.1-0.20260321120606-239e8bd69487

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-mfvp-7p3v-x9mh/GHSA-mfvp-7p3v-x9mh.json"