Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. directus
  4. ›
  5. CVE-2022-26969

CVE-2022-26969: Insecure default value for CORS configuration

April 5, 2022 (updated April 14, 2025)

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.

References

  • developer.mozilla.org/en-US/docs/Web/HTTP/CORS
  • github.com/advisories/GHSA-g27j-74fp-xfpr
  • github.com/directus/directus
  • github.com/directus/directus/blob/8daed9c41baeaf1d08c1e292bf9f0dcef65e48fb/docs/configuration/config-options.md
  • github.com/directus/directus/pull/12022
  • github.com/directus/directus/releases/tag/v9.7.0
  • github.com/directus/directus/security/advisories/GHSA-g27j-74fp-xfpr
  • nvd.nist.gov/vuln/detail/CVE-2022-26969
  • security.snyk.io/vuln/SNYK-JS-DIRECTUS-2441822

Code Behaviors & Features

Detect and mitigate CVE-2022-26969 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 9.7.0

Fixed versions

  • 9.7.0

Solution

Upgrade to version 9.7.0 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-942: Permissive Cross-domain Policy with Untrusted Domains

Source file

npm/directus/CVE-2022-26969.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:58 +0000.