{"id":"GHSA-g65h-35f3-x2w3","summary":"Directus Lacks Session Tokens Invalidation","details":"### Summary\nCurrently session tokens function like the other JWT tokens where they are not actually invalidated when logging out. The `directus_session` gets destroyed and the cookie gets deleted but if you captured the cookie value it will still work for the entire expiry time which is set to 1 day by default. Making it effectively a long lived unrevokable stateless token instead of the stateful session token it was meant to be.\nWhen authenticating a session token JWT, Directus should also check whether the associated `directus_session` both still exists and has not expired (although the token should expire at the same time or before the session) to ensure leaked tokens are not valid indefinitely.\n\n## Steps to reproduce\n- Copy the current session token from the cookie\n- Refresh and or log out\n- Use the saved session token to check if it is still valid\n\n### Impact\nThe lack of proper session expiration may improve the likely success of certain attacks. For example, a user might access a web site from a shared computer (such as at a library, Internet cafe, or open work environment). Incorrect token invalidation could allow an attacker to use the browser's history to access a Directus instance session previously accessed by the victim.","aliases":["CVE-2024-34709"],"modified":"2026-09-10T03:50:00.389765939Z","published":"2024-05-13T19:59:39Z","database_specific":{"nvd_published_at":"2024-05-14T15:39:31Z","cwe_ids":["CWE-613"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2024-05-13T19:59:39Z"},"references":[{"type":"WEB","url":"https://github.com/directus/directus/security/advisories/GHSA-g65h-35f3-x2w3"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-34709"},{"type":"WEB","url":"https://github.com/directus/directus/commit/a6172f8a6a0f31a6bf4305a090de172ebfb63bcf"},{"type":"PACKAGE","url":"https://github.com/directus/directus"}],"affected":[{"package":{"name":"directus","ecosystem":"npm","purl":"pkg:npm/directus"},"ranges":[{"type":"SEMVER","events":[{"introduced":"10.10.0"},{"fixed":"10.11.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-g65h-35f3-x2w3/GHSA-g65h-35f3-x2w3.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:N"}]}