Suspended Directus user can continue to use session token to access API
Summary
Since the user status is not checked when verifying a session token a suspended user can use the token generated in session auth mode to access the API despite their status.
Details
There is a check missing in verifySessionJWT to verify that a user is actually still active and allowed to access the API. Right now one can extract the session token obtained by, e.g. login in to the app while still active and then, after the user has been suspended continue to use that token until it expires.
PoC
- Create an active user
- Log in with that user and note the session cookie
- Suspend the user (and don't trigger an
/auth/refreshcall, as that invalidates the session - Access the API with
Authorization: Bearer <token>
Impact
This weakens the security of suspending users.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | directus | >= 10.10.0, < 11.5.0 | 11.5.0 |
| npm package | @directus/api | >= 18.0.0, < 24.0.1 | 24.0.1 |
| npm package | @directus/types | >= 11.0.7, < 13.0.0 | 13.0.0 |
References
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N- Weakness (CWE)
CWE-672- Platform
- npm
- Package
directus, @directus/api, @directus/types- Disclosed
- 26.03.2025
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-56p6-qw3c-fq2g - CC BY 4.0
Vulnerability history: @directus/api
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 12
- First → latest
- 07.2024 02.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- High 2
- Medium 8
- Low 1
Disclosures per year
- 2024: 4
- 2025: 6
- 2026: 2
-
Suspended Directus user can continue to use session token to access API this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.