Lucene search

K
osvGoogleOSV:GHSA-G27J-74FP-XFPR
HistoryApr 05, 2022 - 6:31 p.m.

Insecure default value for CORS configuration

2022-04-0518:31:22
Google
osv.dev
5
cors
configuration
unauthorized access
environment variables
directus
security advisory

EPSS

0.002

Percentile

57.7%

Impact

The default value for the CORS_ENABLED and CORS_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 https://github.com/directus/directus/pull/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:

EPSS

0.002

Percentile

57.7%

Related for OSV:GHSA-G27J-74FP-XFPR