CVE-2022-26969
JavaScript vulnerability analysis and mitigation

Overview

CVE-2022-26969 affects Directus versions before 9.7.0, where the default settings of CORSORIGIN and CORSENABLED are set to true. This vulnerability was disclosed on December 26, 2022, and was assigned a CVSS v3.1 score of 9.8 (CRITICAL). The vulnerability impacts the security configuration of Directus, a real-time API and App dashboard for managing SQL database content (NVD, Snyk).

Technical details

The vulnerability stems from overly permissive default CORS (Cross-Origin Resource Sharing) settings in Directus installations. By default, both CORSENABLED and CORSORIGIN were set to true, which made the system too permissive in terms of cross-origin requests. This configuration could potentially allow unauthorized cross-origin requests to access the API (GitHub PR).

Impact

The insecure default configuration could lead to unauthorized access to the API from any origin, potentially resulting in a total loss of confidentiality and integrity of the system. According to the CVSS assessment, this vulnerability could result in high impacts on confidentiality, integrity, and availability of the affected system (Snyk).

Mitigation and workarounds

The vulnerability was fixed in Directus version 9.7.0. Users should upgrade to this version or later. For those unable to upgrade immediately, a workaround is available by explicitly configuring the CORS environment variables to match the project's specific needs. It is recommended to use a domain allow-list approach, for example setting CORS_ORIGIN to specific domains like 'https://directus.io' rather than using permissive settings (GitHub Release).

Community reactions

The security improvement was well-received by the community, with multiple positive reactions on GitHub. The change was acknowledged as necessary despite making the initial setup process slightly more complex, as it prioritizes security over convenience (GitHub Release).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66456CRITICAL9.1
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-66457HIGH7.5
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-65849MEDIUM6.9
  • JavaScriptJavaScript
  • altcha
NoNoDec 08, 2025
CVE-2025-66202MEDIUM6.5
  • JavaScriptJavaScript
  • astro
NoYesDec 09, 2025
CVE-2025-14284MEDIUM5.1
  • JavaScriptJavaScript
  • @tiptap/extension-link
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management