All vulnerabilities

Servers and applications

GHSA-4jw7-6mqj-vrhq

Server-side request forgery in AI chat file downloads bypasses the outbound IP deny-list

Severity
High 7.7
Published
20 Aug 2026
Last changed
20 Aug 2026
Added to UpHeron
3 Nov 2026
Fixed in
12.2.0
Weakness
Server-side request forgery (CWE-918)
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:C/C:H/I:N/A:N
Sources
Project advisories (GitHub)

Description

The AI chat endpoint (POST /ai/chat) fetches user-supplied URLs server-side without the IP validation Directus applies to its other outbound requests. A chat message may include a file part, and the URL carried by that part is passed to the AI SDK, which downloads any file the target model cannot handle natively using a plain fetch. That download does not go through Directus's IP-validated HTTP agent, so the IMPORT_IP_DENY_LIST control does not apply to it.

The AI SDK has its own download guard, but it only rejects literal private IP addresses and the localhost family and performs no DNS resolution. A public hostname that resolves to a private address (for example a name pointing at 127.0.0.1 or 169.254.169.254) therefore passes the check and is fetched.

Any authenticated user with app access can use this to make the Directus server issue requests to internal-only destinations. Administrator rights are not required.

From directus/directus's security advisory. Shortened; the full text is there.

Workarounds

For deployments that cannot upgrade, set AI_ENABLED=false, or leave every LLM provider unconfigured (no API key), which prevents the request from reaching the download path. Restricting app access does not mitigate this, since ordinary non-admin app users can trigger it.

Workarounds as given by directus/directus's security advisory.

Affected software

SoftwareAffected versions
DirectusServers and applications · github:directus/directus
  • From 11.16.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