All vulnerabilities

Servers and applications

GHSA-p623-wgx3-wxp8

Directus applies side effects in service overrides before permission checks, allowing unauthorized data modification

Severity
Medium 6.5
Published
5 Aug 2026
Last changed
5 Aug 2026
Added to UpHeron
3 Nov 2026
Fixed in
12.1.0
Weakness
CWE-696Missing authorization (CWE-862)
Attack
Over the network · No login needed · No user action needed
Attacker can
Change some data · Slow it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Sources
Project advisories (GitHub)

Description

Several Directus service classes override the base ItemsService mutation methods to perform cleanup work (nullifying foreign keys, clearing caches) before delegating to the superclass. The caller's delete or update permission check runs inside the superclass method, so those side effects were applied before authorization was evaluated. When the superclass subsequently rejected the request with 403 Forbidden, the side effects had already been committed.

The most impactful instance is FlowsService.deleteMany (api/src/services/flows.ts), which nullified resolve and reject on every row in directus_operations belonging to the target flow. Because Directus does not require a token to reach a service (the authenticate middleware assigns accountability but does not reject anonymous requests), and the flows controller adds no pre-service authorization layer, an unauthenticated caller issuing DELETE /flows/:pk received 403 Forbidden while the operation graph of that flow was permanently…

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

Workarounds

None within the application. Restricting the affected endpoints (/flows, /users, /shares) to authenticated administrative traffic at a reverse proxy or WAF mitigates the unauthenticated paths until the upgrade is applied.

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

Affected software

SoftwareAffected versions
DirectusServers and applications · github:directus/directus
  • Every version before 12.1.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