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

0.002 Low

EPSS

Percentile

55.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:

CPENameOperatorVersion
directuslt9.7.0

0.002 Low

EPSS

Percentile

55.7%

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