Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 86%

Casdoor SAML callback handler accepts any well-formed SAMLResponse sent to /api/acs without verifying that it corresponds to an AuthnRequest (CVE-2026-9098)

0
Critical
Published: 05/28/2026 (05/28/2026, 18:30:32 UTC)
Source: GCVE Database
Product: github.com/casdoor/casdoor

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Affected software

Goghsa
github.com/casdoor/casdoor
Affected versions
<=1.1000.1-0.20260321120606-239e8bd69487

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/02/2026, 23:15:23 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses