Casdoor SAML callback handler accepts any well-formed SAMLResponse sent to /api/acs without verifying that it corresponds to an AuthnRequest (CVE-2026-9098)
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.
AI Analysis
Technical Summary
The vulnerability in Casdoor (<=2.362.0) arises because the SAML callback handler does not verify that incoming SAMLResponse messages correspond to an AuthnRequest previously issued by Casdoor. This lack of correlation enables attackers who control a registered upstream IdP to send unsolicited or replayed SAML responses to the /api/acs endpoint. Furthermore, even if an administrator disables or deletes an IdP after a SAML flow has started, the handler processes responses using a snapshot of the IdP configuration from the start of the request, which can be exploited for unauthorized access. This flaw leads to Casdoor issuing sessions without proper authentication validation, enabling persistent unauthorized access.
Potential Impact
An attacker controlling a registered upstream IdP can exploit this vulnerability to gain persistent unauthorized access by sending unsolicited or replayed SAML responses. This bypasses normal authentication flows, allowing the attacker to impersonate users without valid authentication requests. The vulnerability impacts confidentiality and integrity by allowing unauthorized session issuance. Availability is not affected.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, administrators should carefully manage and monitor registered IdPs, avoiding disabling or deleting IdPs during active SAML flows. Consider restricting or auditing upstream IdPs to trusted entities only. Monitor for unusual SAML responses and session creations related to /api/acs.
Casdoor SAML callback handler accepts any well-formed SAMLResponse sent to /api/acs without verifying that it corresponds to an AuthnRequest (CVE-2026-9098)
Description
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.
CVSS v3.1
Score 9.1critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Casdoor (<=2.362.0) arises because the SAML callback handler does not verify that incoming SAMLResponse messages correspond to an AuthnRequest previously issued by Casdoor. This lack of correlation enables attackers who control a registered upstream IdP to send unsolicited or replayed SAML responses to the /api/acs endpoint. Furthermore, even if an administrator disables or deletes an IdP after a SAML flow has started, the handler processes responses using a snapshot of the IdP configuration from the start of the request, which can be exploited for unauthorized access. This flaw leads to Casdoor issuing sessions without proper authentication validation, enabling persistent unauthorized access.
Potential Impact
An attacker controlling a registered upstream IdP can exploit this vulnerability to gain persistent unauthorized access by sending unsolicited or replayed SAML responses. This bypasses normal authentication flows, allowing the attacker to impersonate users without valid authentication requests. The vulnerability impacts confidentiality and integrity by allowing unauthorized session issuance. Availability is not affected.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, administrators should carefully manage and monitor registered IdPs, avoiding disabling or deleting IdPs during active SAML flows. Consider restricting or auditing upstream IdPs to trusted entities only. Monitor for unusual SAML responses and session creations related to /api/acs.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-mfvp-7p3v-x9mh
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-9098"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- CRITICAL
- Cvss Version
- 3.1
Threat ID: 6a46ecbe27e9c7971943d0b0
Added to database: 07/02/2026, 22:57:02 UTC
Last enriched: 07/02/2026, 23:15:23 UTC
Last updated: 07/31/2026, 19:23:00 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.