CVE-2024-45596: Directus · Session is cached for OpenID and OAuth2 if `redirect` is not used
Affects directusSource GCVE Database
Not known to be exploited · CVSS 7.4 High : upgrade to 10.13.3 soon.
Data as of 13 Nov 2026, 19:44 UTC
- Patch
- Available – fixed in 10.13.3, 11.1.0, 21.0.1 +1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 10 Sep 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmdirectus | Affected
| Fixed in
|
| npmdirectus | Affected
| Fixed in
|
| npm@directus/api | Affected
| Fixed in
|
| npm@directus/api | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Apply the official patches by upgrading Directus to versions 10.13.3, 11.1.0, 21.0.1, or 22.2.0 or later. These versions contain fixes that prevent caching of authentication responses in this scenario. Until patched, ensure that all SSO login URLs include the required redirect query string to avoid triggering the caching behavior. No other mitigations are specified by the vendor.
Description
Directus versions prior to 10.13.3, between 11.0.0-rc.1 and before 11.1.0, prior to 21.0.1, and between 22.0.0 and before 22.2.0 have a vulnerability where unauthenticated users can access cached credentials of the last authenticated user via OpenID or OAuth2 if the login URL does not include a redirect query string. This occurs due to caching behavior on the authentication callback endpoint. The vulnerability allows exposure of access tokens to unauthenticated users under specific conditions.
References
- github.com/directus/directus/security/advisories/GHSA-cff8-x7jv-4fm8 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2024-45596 (opens in a new tab)
- github.com/directus/directus/commit/4aace0bbe57232e38cd6a287ee475293e46dc91b (opens in a new tab)
- github.com/directus/directus/commit/769fa22797bff5a9231599883b391e013f122e52 (opens in a new tab)
- github.com/directus/directus (opens in a new tab)
- github.com/directus/directus/blob/main/api/src/auth/drivers/oauth2.ts (opens in a new tab)
- github.com/directus/directus/blob/main/api/src/auth/drivers/openid.ts (opens in a new tab)