Skip to content
OpenAdvisories
High · 7.4 CVE-2024-45596 EUVD-2024-2769GHSA-cff8-x7jv-4fm8

Directus's session is cached for OpenID and OAuth2 if `redirect` is not used

Published Sep 10, 2024 · Updated Sep 10, 2024 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
directus directus < 10.13.3, >= 11.0.0, < 11.1.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @directus/api < 21.0.1 21.0.1 GHSA-cff8-x7jv-4fm8
npm @directus/api >= 22.0.0, < 22.2.0 22.2.0 GHSA-cff8-x7jv-4fm8
npm directus < 10.13.3 10.13.3 GHSA-cff8-x7jv-4fm8
npm directus >= 11.0.0-rc.1, < 11.1.0 11.1.0 GHSA-cff8-x7jv-4fm8

References