Incorrect Permission Checking for GraphQL Subscriptions
Moderate severity
GitHub Reviewed
Published
Jul 25, 2023
in
directus/directus
•
Updated Jan 16, 2026
Description
Published by the National Vulnerability Database
Jul 25, 2023
Published to the GitHub Advisory Database
Jul 25, 2023
Reviewed
Jul 25, 2023
Last updated
Jan 16, 2026
Summary
CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Access to information you should not have access to when the permissions rely on
$CURRENT_USERfor filtering.Details
The permission filters (i.e.
user_created IS $CURRENT_USER) are not properly checked when using GraphQL subscription resulting in unauthorized users getting event on their subscription which they should not be receiving according to the permissions.This can be any collection but out-of-the box the
directus_userscollection is configured with such a permissions filter allowing you to get updates for other users when changes happen.An example:
Patches
directus/directus#19155
Workarounds
Disable GraphQL Subscriptions
References
References