directus
Affected
- introduced
0, fixed9.7.0(semver)
Fixed versions
9.7.0
Fix
- Fixed version
9.7.0npm install [email protected]
Advisory
Also known as: CVE-2022-26969
Insecure default value for CORS configuration
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:
Critical Basis: The source's own band: CRITICAL
0, fixed 9.7.0 (semver)9.7.0
9.7.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0