Insecure default value for CORS configuration
Description
Published to the GitHub Advisory Database
Apr 5, 2022
Reviewed
Apr 5, 2022
Published by the National Vulnerability Database
Dec 26, 2022
Last updated
Apr 14, 2025
Impact
The default value for the
CORS_ENABLED
andCORS_ORIGIN
configuration was set to be very permissive by default. This could lead to unauthorized access in uncontrolled environments when the configuration hasn't been changed.Patches
The default values for CORS have been changed in directus/directus#12022 which is released under 9.7.0
Workarounds
Configure the CORS environment variables to match your project's usage, rather than leaving them at the (permissive) defaults.
For more information
If you have any questions or comments about this advisory:
References