{"id":"CVE-2022-26969","aliases":["GHSA-g27j-74fp-xfpr"],"url":"https://o3.security/vulnerability/CVE-2022-26969","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)","published":"2022-12-26T00:00:00Z","modified":"2026-10-28T02:31:13.650155987Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"directus","fixedVersion":"9.7.0"}],"fix":{"url":"https://github.com/directus/directus/pull/12022","label":"directus/directus#12022"},"references":[{"type":"WEB","url":"https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS"},{"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"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/26xxx/CVE-2022-26969.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-26969"},{"type":"FIX","url":"https://github.com/directus/directus/pull/12022"},{"type":"WEB","url":"https://github.com/directus/directus/security/advisories/GHSA-g27j-74fp-xfpr"},{"type":"PACKAGE","url":"https://github.com/directus/directus"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:31:13.650155987Z"}}