GHSA-56p6-qw3c-fq2g

Suggest an improvement
Source
https://github.com/advisories/GHSA-56p6-qw3c-fq2g
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-56p6-qw3c-fq2g/GHSA-56p6-qw3c-fq2g.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-56p6-qw3c-fq2g
Aliases
Related
Published
2025-03-26T18:30:43Z
Modified
2025-06-09T18:12:09Z
Severity
  • 3.5 (Low) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N CVSS Calculator
Summary
Suspended Directus user can continue to use session token to access API
Details

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.

Database specific
{
    "github_reviewed_at": "2025-03-26T18:30:43Z",
    "nvd_published_at": "2025-03-26T18:15:26Z",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-672"
    ],
    "severity": "LOW"
}
References

Affected packages

npm / directus

Package

Affected ranges

Type
SEMVER
Events
Introduced
10.10.0
Fixed
11.5.0

npm / @directus/api

Package

Name
@directus/api
View open source insights on deps.dev
Purl
pkg:npm/%40directus/api

Affected ranges

Type
SEMVER
Events
Introduced
18.0.0
Fixed
24.0.1

npm / @directus/types

Package

Name
@directus/types
View open source insights on deps.dev
Purl
pkg:npm/%40directus/types

Affected ranges

Type
SEMVER
Events
Introduced
11.0.7
Fixed
13.0.0