All vulnerabilities

Servers and applications

GHSA-r9xq-xp38-j4j3

Sensitive `directus_settings` fields, including plaintext AI backend authorization headers, readable by minimal `app_access` users

Severity
Medium 6.5
Published
20 Aug 2026
Last changed
20 Aug 2026
Added to UpHeron
3 Nov 2026
Fixed in
12.2.0
Weakness
Information exposure (CWE-200)Insufficiently protected credentials (CWE-522)CWE-1220
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Sources
Project advisories (GitHub)

Description

The built-in minimal app permissions granted unrestricted read access to the directus_settings singleton. As a result, any authenticated user with app_access: true and no custom permissions could read every settings field, including server-side AI and MCP configuration that is intended to be admin-only.

The highest impact field is ai_openai_compatible_headers, which stores the custom request headers used to authenticate against a self-configured OpenAI-compatible backend. Unlike the provider API key fields, this field is not encrypted or concealed, so any bearer token or API key an administrator placed there was returned in plaintext.

A user whose only privilege is app access could read, among others:

  • ai_openai_compatible_headers: plaintext authorization headers for the configured OpenAI-compatible backend
  • ai_openai_compatible_base_url: internal or private endpoint of that backend
  • ai_system_prompt: server-side AI system prompt
  • mcp_system_prompt: server-side MCP system prompt
From directus/directus's security advisory. Shortened; the full text is there.

Workarounds

For instances that cannot upgrade immediately:

  • Remove credentials from ai_openai_compatible_headers and rotate any value that was stored there, since it must be assumed disclosed to every app user.
  • Avoid placing sensitive content in ai_system_prompt and mcp_system_prompt.
Workarounds as given by directus/directus's security advisory.

Affected software

SoftwareAffected versions
DirectusServers and applications · github:directus/directus
  • From 11.15.0 before 12.2.0

About Directus

The flexible backend for all your projects 🐰 Turn your DB into a headless CMS, admin panels, or apps with a custom UI, instant APIs, auth & more.

From its GitHub repository.
Weekly downloads (npm)
30,924npm, 15 Nov 2026
Docker Hub pulls
50,954,770Docker Hub, 15 Nov 2026
GitHub stars
38,722GitHub, 15 Nov 2026
Forks
5,000GitHub, 15 Nov 2026
Latest release
v12.6.1GitHub, 15 Nov 2026
Released
4 Nov 2026GitHub
First published on GitHub
12 Dec 2012GitHub

References