{"id":"CVE-2022-26969","aliases":["CVE-2022-26969","GHSA-g27j-74fp-xfpr"],"related":[],"kind":"vulnerability","state":"published","title":"Insecure default value for CORS configuration","summary":"In Directus before 9.7.0, the default settings of CORS_ORIGIN and CORS_ENABLED are true.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In Directus before 9.7.0, the default settings of CORS_ORIGIN and CORS_ENABLED are true.","source":"cvelist"},{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"},{"lang":"es","text":"En Directus anterior a 9.7.0, la configuración predeterminada de CORS_ORIGIN y CORS_ENABLED es verdadera.","source":"nvd"}],"published":"2022-04-05T18:31:22.000Z","modified":"2026-06-17T04:36:14.323Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-942"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"9.7.0"}],"ecosystem":"npm","package":"directus","purl":"pkg:npm/directus","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"9.7.0"}],"vendor":"monospace","product":"directus","cpe":"cpe:2.3:a:monospace:directus:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/directus/directus/blob/8daed9c41baeaf1d08c1e292bf9f0dcef65e48fb/docs/configuration/config-options.md","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/directus/directus/pull/12022","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.snyk.io/vuln/SNYK-JS-DIRECTUS-2441822","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS","tags":["technical-description","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/directus/directus/releases/tag/v9.7.0","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/directus/directus/security/advisories/GHSA-g27j-74fp-xfpr","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-26969","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/directus/directus","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2025-04-14T14:53:09.709Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-26969","url":"https://www.cve.org/CVERecord?id=CVE-2022-26969","licence":"CVE Terms of Use","modified":"2025-04-14T14:53:51.277Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g27j-74fp-xfpr","url":"https://github.com/advisories/GHSA-g27j-74fp-xfpr","licence":"CC-BY-4.0","modified":"2025-04-14T22:07:39.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-26969","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-26969","licence":"Public domain","modified":"2026-06-17T04:36:14.323Z"}],"updatedAt":"2026-11-25T22:58:17.876Z","epss":{"score":0.01018,"percentile":0.64305,"date":"2026-12-01T12:00:22.000Z"}}