{"id":"GHSA-g27j-74fp-xfpr","summary":"Insecure default value for CORS configuration","details":"### Impact\n\nThe 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.\n\n### Patches\n\nThe default values for CORS have been changed in https://github.com/directus/directus/pull/12022 which is released under 9.7.0\n\n### Workarounds\n\nConfigure the CORS environment variables to match your project's usage, rather than leaving them at the (permissive) defaults.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [directus/directus](https://github.com/directus/directus)\n* Email us at [security@directus.io](mailto:security@directus.io)","aliases":["CVE-2022-26969"],"modified":"2025-04-14T22:07:39Z","published":"2022-04-05T18:31:22Z","database_specific":{"github_reviewed_at":"2022-04-05T18:31:22Z","nvd_published_at":"2022-12-26T06:15:00Z","cwe_ids":["CWE-942"],"severity":"CRITICAL","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/directus/directus/security/advisories/GHSA-g27j-74fp-xfpr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-26969"},{"type":"WEB","url":"https://github.com/directus/directus/pull/12022"},{"type":"WEB","url":"https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS"},{"type":"PACKAGE","url":"https://github.com/directus/directus"},{"type":"WEB","url":"https://github.com/directus/directus/blob/8daed9c41baeaf1d08c1e292bf9f0dcef65e48fb/docs/configuration/config-options.md"},{"type":"WEB","url":"https://github.com/directus/directus/releases/tag/v9.7.0"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-DIRECTUS-2441822"}],"affected":[{"package":{"name":"directus","ecosystem":"npm","purl":"pkg:npm/directus"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"9.7.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/04/GHSA-g27j-74fp-xfpr/GHSA-g27j-74fp-xfpr.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}