Google
CVE-2026-35408
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessOpen malicious cross-origin window
-
DeliveryAccess Directus SSO login page
-
ExploitIntercept OAuth authorization flow
-
ExecutionRedirect to attacker OAuth client
-
ImpactSteal victim authentication credentials
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Origin validation
|
| Exploitation Conditions | Directus SSO login pages with missing Cross-Origin-Opener-Policy (COOP) header. Attacker controls malicious cross-origin website. Victim must visit attacker's site and trigger opening of Directus login page, allowing window object manipulation to intercept OAuth flow and redirect to attacker-controlled OAuth client. |
| Impact | Real-world risk assessment requires balancing HIGH CVSS base score (8.7) against attack complexity constraints. The CVSS vector (AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N) indicates network-exploitable unauthenticated attack with scope change and high confidentiality/integrity impact, but HIGH attack complexity. However, the UI:N rating may be misleading-successful exploitation requires victim interaction (clicking attacker link during authentication flow), suggesting CVSS may overstate ease of exploitation. Attack prerequisites include: victim must navigate from attacker-controlled origin to Directus SSO page, timing must align with active authentication attempt, and attacker needs pre-registered malicious OAuth client with victim's identity provider. No CISA KEV listing indicates no confirmed active exploitation. No EPSS data provided limits probability assessment. The Scope Changed metric reflects potential lateral impact to third-party identity provider accounts beyond Directus itself. For organizations using Google/Discord SSO with Directus, this represents genuine risk of account takeover chains. Priority should be MEDIUM-HIGH for internet-facing Directus instances with SSO enabled, particularly given simple patch availability. Technical impact enables full authentication bypass and potential account takeover, making this actionable despite attack complexity constraints. |
| Exploit ScenarioDerived | An attacker registers a malicious OAuth client application with Google OAuth and hosts a phishing page at attacker-site.com that presents a legitimate-seeming reason to authenticate with Directus (e.g., fake collaboration invitation). When the victim clicks the link, the attacker's JavaScript opens the legitimate Directus SSO login page in a new window via window.open(). Because Directus lacks COOP headers, the attacker retains JavaScript access to the opened window object. The attacker's script monitors for the OAuth callback redirect, intercepts it, and modifies the authorization code flow to redirect to the attacker's malicious OAuth client ID instead of the legitimate Directus client. The victim completes authentication believing they're logging into Directus, but unknowingly grants the attacker's OAuth client access to their Google account with whatever scopes were requested, potentially including Gmail, Drive, or profile data access, leading to identity provider account compromise and potential Directus instance account takeover. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 04, 2026
OAuth authorization flow interception in Directus enables attackers to steal victims' identity provider access tokens through cross-origin window manipulation. This authentication bypass vulnerability (CVSS 8.7) affects the Directus npm package due to missing Cross-Origin-Opener-Policy headers on SSO login pages, allowing malicious sites to redirect OAuth flows to attacker-controlled clients. No public exploit identified at time of analysis, though EPSS data unavailable. Attack complexity rated HIGH due to requirement for victim interaction with attacker-controlled origin during authentication flow.
RemediationAI
Vendor-released patch available addressing this vulnerability by adding Cross-Origin-Opener-Policy: same-origin HTTP response headers to all SSO-related endpoints in Directus. Organizations should upgrade to the latest patched version of the Directus npm package immediately, with specific fixed version details available in the GitHub security advisory at https://github.com/directus/directus/security/advisories/GHSA-8m32-p958-jg99. For environments unable to upgrade immediately, implement temporary mitigation by configuring reverse proxy or web server (nginx, Apache, Cloudflare, etc.) to inject the Cross-Origin-Opener-Policy: same-origin header on all responses from Directus application servers. This workaround provides equivalent protection until application upgrade completes. Verify remediation by inspecting HTTP response headers on SSO login endpoints using browser developer tools or curl commands. After patching, no additional configuration changes required as fix is implemented at application level. Organizations should also review OAuth client configurations with identity providers to identify any suspicious or unauthorized client registrations that may indicate prior exploitation attempts.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Directus is an open-source headless CMS platform (npm package: directus) that supports Single Sign-On authentication via OAuth providers like Google and Discord. This vulnerability stems from CWE-346 (Origin Validation Error), specifically the absence of Cross-Origin-Opener-Policy (COOP) HTTP response headers on SSO endpoints. COOP is a browser security mechanism that controls whether a cross-origin document can retain a reference to a window it opened. Without COOP: same-origin, when a malicious site opens a Directus SSO login page via window.open(), it maintains access to the opened window's JavaScript context. This enables the attacker to monitor navigation events and inject malicious code that redirects the OAuth authorization callback to an attacker-controlled OAuth client ID, effectively performing a client-side authorization code interception attack. The vulnerability exploits the trust relationship between OAuth identity providers and client applications, leveraging the victim's authenticated session with the provider.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
Summary
Directus's Single Sign-On (SSO) login pages lacked a Cross-Origin-Opener-Policy (COOP) HTTP response header. Without this header, a malicious cross-origin window that opens the Directus login page retains the ability to access and manipulate the window object of that page. An attacker can exploit this to intercept and redirect the OAuth authorization flow to an attacker-controlled OAuth client, causing the victim to unknowingly grant access to their authentication provider account (e.g. Google, Discord).
Impact
A successful attack allows the attacker to obtain an OAuth access token for the victim's third-party identity provider account. Depending on the scopes authorized, this can lead to:
- Unauthorized access to the victim's linked identity provider account
- Account takeover of the Directus instance if the attacker can authenticate using the stolen credentials or provider session
Patches
This issue has been addressed by adding the Cross-Origin-Opener-Policy: same-origin HTTP response header to SSO-related endpoints. This header instructs the browser to place the page in its own browsing context group, severing any reference the opener window may hold.
Workarounds
Users who are unable to upgrade immediately can mitigate this vulnerability by configuring their reverse proxy or web server to add the following HTTP response header to all Directus responses: Cross-Origin-Opener-Policy: same-origin
Blast Radius
ecosystem impact- 3 npm packages depend on directus (1 direct, 2 indirect)
Ecosystem-wide dependent count for version 11.17.0.
Executive ViewAI
Directus npm package contains an OAuth authorization flow interception vulnerability (CVSS 8.7) that allows attackers to steal identity provider access tokens through cross-origin window manipulation, potentially enabling account takeover for any user authenticating via SSO. This affects organizations using Directus with OAuth/SSO integrations, as attackers can intercept authentication flows when users visit malicious sites during the login process. The vulnerability requires no vendor patch currently available, necessitating immediate compensating controls.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Implement Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Resource-Policy: same-origin headers on all Directus SSO login pages via reverse proxy or WAF; (2) Restrict OAuth redirect_uri parameters to exact domain matches with no wildcards; (3) Implement per-session cryptographic state tokens with short expiration (5 minutes) for OAuth flows; (4) Deploy network segmentation to limit Directus authentication endpoints to trusted networks only; (5) Enable continuous monitoring for cross-origin authentication attempts and institute immediate session revocation on suspicious patterns.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
GHSA-8m32-p958-jg99
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB