{"id":"CVE-2022-26969","aliases":["EUVD-2022-1731","GHSA-g27j-74fp-xfpr"],"status":"published","title":"Insecure default value for CORS configuration","description":"In Directus before 9.7.0, the default settings of CORS_ORIGIN and CORS_ENABLED are true.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.00998,"percentile":0.63036,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-942"],"published":"2022-04-05T18:31:22Z","modified":"2026-10-28T02:31:13Z","fixes":[{"ecosystem":"npm","package":"directus","fixed_in":["9.7.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"directus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.7.0"}]}]},{"source":"osv","ecosystem":"npm","package":"directus","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"9.7.0"}]}]}],"products":[{"vendor":"monospace","product":"directus"}],"references":[{"url":"https://github.com/directus/directus/blob/8daed9c41baeaf1d08c1e292bf9f0dcef65e48fb/docs/configuration/config-options.md","tags":["x_transferred","Third Party Advisory","web"]},{"url":"https://github.com/directus/directus/pull/12022","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://security.snyk.io/vuln/SNYK-JS-DIRECTUS-2441822","tags":["x_transferred","Third Party Advisory","web"]},{"url":"https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS","tags":["x_transferred","Technical Description","Third Party Advisory","web"]},{"url":"https://github.com/directus/directus/releases/tag/v9.7.0","tags":["x_transferred","Third Party Advisory","web"]},{"url":"https://github.com/directus/directus/security/advisories/GHSA-g27j-74fp-xfpr","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-26969","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-g27j-74fp-xfpr"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/26xxx/CVE-2022-26969.json","tags":["advisory"]},{"url":"https://github.com/directus/directus","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-26969","description":"In Directus before 9.7.0, the default settings of CORS_ORIGIN and CORS_ENABLED are true.","status":"published","published":"2022-12-26T00:00:00Z","modified":"2025-04-14T14:53:51.277Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"adp"}],"cwes":["CWE-942"],"updated_at":"2026-11-02T14:34:26.293612Z"}],"euvd":[{"id":"EUVD-2022-1731","description":"In Directus before 9.7.0, the default settings of CORS_ORIGIN and CORS_ENABLED are true.","status":"published","published":"2022-12-26T00:00:00Z","modified":"2025-04-14T14:53:51Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T20:52:33.465211Z"}],"ghsa":[{"id":"GHSA-g27j-74fp-xfpr","title":"Insecure default value for CORS configuration","description":"### 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)","status":"published","published":"2022-04-05T18:31:22Z","modified":"2025-04-14T22:07:40Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-942"],"updated_at":"2026-11-02T14:38:39.85223Z"}],"nvd":[{"id":"CVE-2022-26969","description":"In Directus before 9.7.0, the default settings of CORS_ORIGIN and CORS_ENABLED are true.","status":"published","published":"2022-12-26T06:15:10.893Z","modified":"2026-06-17T04:36:14.323Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-942"],"updated_at":"2026-11-02T14:07:34.388163Z"}],"osv":[{"id":"CVE-2022-26969","description":"In Directus before 9.7.0, the default settings of CORS_ORIGIN and CORS_ENABLED are true.","status":"published","published":"2022-12-26T00:00:00Z","modified":"2026-10-28T02:31:13.650155987Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:24.758293Z"},{"id":"GHSA-g27j-74fp-xfpr","title":"Insecure default value for CORS configuration","description":"### 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)","status":"published","published":"2022-04-05T18:31:22Z","modified":"2025-04-14T22:07:39Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-942"],"updated_at":"2026-11-02T15:46:47.119724Z"}]}}
