Skip to main content

Google CVE-2026-35408

CRITICAL
Origin Validation Error (CWE-346)
2026-04-04 https://github.com/directus/directus GHSA-8m32-p958-jg99
9.3
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Open malicious cross-origin window
  2. Delivery
    Access Directus SSO login page
  3. Exploit
    Intercept OAuth authorization flow
  4. Execution
    Redirect to attacker OAuth client
  5. Impact
    Steal 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

npm directus fix: 11.17.0

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

NVD PRIMARY 9.3 CRITICAL
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

4
Severity Changed
Jul 24, 2026 - 21:22 NVD
HIGH CRITICAL
CVSS changed
Jul 24, 2026 - 21:22 NVD
8.7 (HIGH) 9.3 (CRITICAL)
Patch released
Apr 04, 2026 - 08:30 nvd
Patch available
CVE Published
Apr 04, 2026 - 06:06 nvd
HIGH 8.7

DescriptionNVD

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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 3 npm packages depend on directus (1 direct, 2 indirect)

Ecosystem-wide dependent count for version 11.17.0.

Executive ViewAI

Why It Matters

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.

Business Impact: High
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

EPSS Score
0.0%
Top 97% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)NVD

pkg:npm/directus

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy