CVE-2025-30351: Directus Session Token Vulnerability Allows Suspended Users to Access API

directus Updated 02 Oct 2025

Summary

26/03/2025
Yes i
Low
3.5

CVE-2025-30351: Suspended Directus user can continue to use session token to access API. Affects directus versions >= 10.10.0, < 11.5.0. Fixed in 11.5.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Directus is an open-source headless CMS that allows users to manage their database content through a user-friendly API. It provides features such as user authentication, role-based access control, and real-time updates. However, a vulnerability exists in the session management system that allows suspended users to continue accessing the API using their session tokens.

Vulnerability Detail

The vulnerability arises from a missing check in the 'verifySessionJWT' function, which fails to verify whether a user is still active before allowing access to the API. This oversight means that a user can log in while active, obtain a session token, and continue to use that token even after being suspended. The implications of this vulnerability are significant, as it undermines the security measures intended to restrict access for suspended users, potentially exposing sensitive data and functionality to unauthorized users.

How To Fix

Latest published version: 12.5.0 as of 22 Oct 2026

npm install directus@12.5.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

11.5.0

This is the first release that contains the fix.

npm install directus@11.5.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can manually invalidate session tokens for suspended users by implementing a custom middleware that checks user status before allowing access to the API. This can be done by adding a check in your API routes to verify if the user is active before processing requests.

Conclusion

In summary, CVE-2025-30351 is a significant vulnerability in Directus that allows suspended users to access the API using their session tokens. It is crucial to update to the patched version 11.15.0 or later to mitigate this risk. Additionally, implementing a temporary workaround can help secure your application until an update can be performed.

See every vulnerability recorded for directus →

Share this vulnerability

FAQ

CVE-2025-30351 is a vulnerability in Directus that allows suspended users to continue accessing the API using their session tokens.

If your application uses Directus and has suspended users, this vulnerability could allow those users to access sensitive data and functionality, posing a security risk.

You can use Vulert, which monitors open-source vulnerabilities in your software. By checking your package-lock.json file on the Vulert playground, you can determine if your application is affected by this vulnerability.

If an immediate update is not possible, implement a custom middleware to check user status before processing API requests as a temporary workaround.

The CVSS score of this vulnerability is 3.5, indicating a low severity level.

Related vulnerabilities

Recent vulnerabilities recorded for directus.

How To Fix

Latest published version: 12.5.0 as of 22 Oct 2026

npm install directus@12.5.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

11.5.0

This is the first release that contains the fix.

npm install directus@11.5.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback