CVE-2024-47822: Directus inserts access token from query string into logs
Summary Access token from query string is not redacted and is potentially exposed in system logs which may be persisted. Details The access token in req.query is not redacted when the LOGSTYLE 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. PoC 1.
Published Apr 14, 2025
Affected packages
@directus/api
- Ecosystem
- npm
- Affected
- < 21.0.0
- Fixed in
- 21.0.0
- Check
npm ls @directus/api
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
Access token from query string is not redacted and is potentially exposed in system logs which may be persisted.
Details
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.
PoC
- Set
LOG_LEVEL="raw"in the environment. - Send a request with the
access_tokenin the query string. - Notice that the
access_tokeninreq.queryis not redacted.
Impact
It 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.
Credited to licitdev.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-26185
Directus Vulnerable to User Enumeration via Password Reset Timing Attack
medium5.3Feb 12, 2026CVE-2026-22032
Directus has open redirect in SAML
medium4.3Jan 6, 2026CVE-2025-64748
Directus's conceal fields are searchable if read permissions enabled
medium6.5Nov 13, 2025CVE-2025-64749
Directus Vulnerable to Information Leakage in Existing Collections
medium4.3Nov 13, 2025CVE-2025-55746
Directus allows unauthenticated file upload and file modification due to lacking input sanitization
critical9.3Aug 20, 2025CVE-2025-30351
Suspended Directus user can continue to use session token to access API
low3.5Mar 26, 2025
