NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

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

lowCVSS 3.1 3.5GHSA-56p6-qw3c-fq2g

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.

Published Mar 26, 2025 · Updated Jun 9, 2025

Affected packages

directus

Ecosystem
npm
Affected
>= 10.10.0, < 11.5.0
Fixed in
11.5.0
Check
npm ls directus

@directus/api

Ecosystem
npm
Affected
>= 18.0.0, < 24.0.1
Fixed in
24.0.1
Check
npm ls @directus/api

@directus/types

Ecosystem
npm
Affected
>= 11.0.7, < 13.0.0
Fixed in
13.0.0
Check
npm ls @directus/types

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries