Directus's session is cached for OpenID and OAuth2 if `redirect` is not used
Description
Directus is a real-time API and App dashboard for managing SQL database content. An unauthenticated user can access credentials of last authenticated user via OpenID or OAuth2 where the authentication URL did not include redirect query string. This happens because on that endpoint for both OpenId and Oauth2 Directus is using the respond middleware, which by default will try to cache GET requests that met some conditions. Although, those conditions do not include this scenario, when an unauthenticated request returns user credentials. This vulnerability is fixed in 10.13.3 and 11.1.0.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
directusnpm | < 10.13.3 | 10.13.3 |
directusnpm | >= 11.0.0-rc.1, < 11.1.0 | 11.1.0 |
@directus/apinpm | < 21.0.1 | 21.0.1 |
@directus/apinpm | >= 22.0.0, < 22.2.0 | 22.2.0 |
Affected products
3- ghsa-coords2 versions
< 21.0.1+ 1 more
- (no CPE)range: < 21.0.1
- (no CPE)range: < 10.13.3
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-cff8-x7jv-4fm8ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-45596ghsaADVISORY
- github.com/directus/directus/blob/main/api/src/auth/drivers/oauth2.tsghsaWEB
- github.com/directus/directus/blob/main/api/src/auth/drivers/openid.tsghsaWEB
- github.com/directus/directus/commit/4aace0bbe57232e38cd6a287ee475293e46dc91bghsax_refsource_MISCWEB
- github.com/directus/directus/commit/769fa22797bff5a9231599883b391e013f122e52ghsax_refsource_MISCWEB
- github.com/directus/directus/security/advisories/GHSA-cff8-x7jv-4fm8ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.