8.7high
Directus is Missing Cross-Origin Opener Policy
- Severity
- 8.7high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.20% (higher than 6% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-8m32-p958-jg99
Description
Directus is a real-time API and App dashboard for managing SQL database content. Prior to 11.17.0, 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). This vulnerability is fixed in 11.17.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| directus directus | < 11.17.0 | CVE List |
| directus (npm) | before 11.17.0 | GitHub Advisory Database |
| monospace directus | before 11.17.0 | NVD |
All scores
| GitHub_M | 8.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N |
| GitHub | 8.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N |
| NVD | 9.3critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N |
Classification
What each source says
CVE List
Directus is a real-time API and App dashboard for managing SQL database content. Prior to 11.17.0, 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). This vulnerability is fixed in 11.17.0.
GitHub Advisory Database
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
NVD (es)
Directus es un panel de control de API y aplicaciones en tiempo real para gestionar contenido de bases de datos SQL. Antes de la versión 11.17.0, las páginas de inicio de sesión de Single Sign-On (SSO) de Directus carecían de un encabezado de respuesta HTTP Cross-Origin-Opener-Policy (COOP). Sin este encabezado, una ventana maliciosa de origen cruzado que abre la página de inicio de sesión de Directus conserva la capacidad de acceder y manipular el objeto de ventana de esa página. Un atacante puede explotar esto para interceptar y redirigir el flujo de autorización de OAuth a un cliente OAuth controlado por el atacante, haciendo que la víctima conceda acceso sin saberlo a su cuenta de proveedor de autenticación (p. ej., Google, Discord). Esta vulnerabilidad se corrigió en la versión 11.17.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-35408 changed 2026-04-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8m32-p958-jg99 changed 2026-04-07 | CC-BY-4.0 |
| NVD | CVE-2026-35408 changed 2026-07-24 | Public domain |