Advisory

GHSA-g27j-74fp-xfpr

Also known as: CVE-2022-26969

Summary

Insecure default value for CORS configuration

Details

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:

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-04-05 18:31 UTC
Modified
2025-04-14 22:07 UTC

Affected packages and fixes

directus

npm · All systems

Affected

  • introduced 0, fixed 9.7.0 (semver)

Fixed versions

9.7.0

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences