CVE-2025-30351: Suspended Directus user can continue to use session token to access API

Published Mar 26, 2025
·
Updated

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/refresh call, as that invalidates the session Access the API with Authorization: Bearer <token>

Impact This weakens the security of suspending users.

Other sources

Directus is a real-time API and App dashboard for managing SQL database content. Starting in version 10.10.0 and prior to version 11.5.0, a suspended user can use the token generated in session auth mode to access the API despite their status. This happens because there is a check missing in verifySessionJWT to verify that a user is actually still active and allowed to access the API. 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. Version 11.5.0 patches the issue.

MITRE

Affected Software

4 affected componentsFixes available
npm/@directus/types>=11.0.7<13.0.0
13.0.0
npm/@directus/api>=18.0.0<24.0.1
24.0.1
npm/directus>=10.10.0<11.5.0
11.5.0
Monospace Directus Node.js>=10.10.0<11.5.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@directus/types to a version that resolves this vulnerability.

    Fixed in 13.0.0
  2. Upgrade

    Upgrade npm/@directus/api to a version that resolves this vulnerability.

    Fixed in 24.0.1
  3. Upgrade

    Upgrade npm/directus to a version that resolves this vulnerability.

    Fixed in 11.5.0
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 11.5.0
  5. Compensating control

    If you have suspended users, prevent them from authenticating with any still-valid session tokens (e.g., by invalidating/clearing active sessions server-side) until you upgrade to version 11.5.0.

Event History

Mar 26, 2025
CVE Published
via MITRE·05:13 PM
Data Sourced
via MITRE·05:13 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
RemedyAffected Software
Advisory Published
via GitHub·06:30 PM
Data Sourced
via GitHub·06:30 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-30351?

CVE-2025-30351 has been classified as a high-severity vulnerability due to its potential to allow suspended users to access secured APIs.

2

How do I fix CVE-2025-30351?

To address CVE-2025-30351, ensure the session token verification process checks the user's status before granting access.

3

What software versions are affected by CVE-2025-30351?

CVE-2025-30351 affects directus versions between 10.10.0 and 11.15.0.

4

What is the main issue with CVE-2025-30351?

The main issue with CVE-2025-30351 is that user status is not verified, allowing access to the API by suspended users.

5

When was CVE-2025-30351 disclosed?

CVE-2025-30351 was disclosed in 2025 following an identification of the status verification issue within the software.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203