CVE-2022-26969

In Directus before 9.7.0, the default settings of CORS_ORIGIN and CORS_ENABLED are true

Critical · published December 26, 2022

CVSS v3.1
9.8
EPSS
1%
Percentile
61.3
In the wild
Unconfirmed
What it is

🔥 A critical CORS misconfiguration means any site can send requests to your Directus instance! Think of it like leaving your front door wide open and inviting any delivery driver in — they can rummage through your entire house without a fuss, all because you forgot to check who was authorized! With CORS_ORIGIN and CORS_ENABLED set to 'true' by default, attackers can easily send malicious requests to your server and fetch sensitive data. This could lead to unauthorized actions being performed on behalf of legitimate users, potentially compromising databases and sensitive information. Imagine someone pilfering your secrets while you’re busy making coffee!

Put simply

Think of it like leaving your front door wide open and inviting any delivery driver in — they can rummage through your entire house without a fuss, all because you forgot to check who was authorized! This vulnerability arises from a lack of proper CORS configuration in Directus before version 9.7.0, allowing any domain to make cross-origin requests without restrictions.

What to do

With CORS_ORIGIN and CORS_ENABLED set to 'true' by default, attackers can easily send malicious requests to your server and fetch sensitive data. This could lead to unauthorized actions being performed on behalf of legitimate users, potentially compromising databases and sensitive information. Imagine someone pilfering your secrets while you’re busy making coffee! To secure your Directus instance, ensure you update to version 9.7.0 or later. Additionally, review your CORS settings to only allow trusted origins, tightening your security posture. Don't wait to lock that door! You've got this! With these steps, you'll have your Directus instance fortified in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00962 · 61.3th percentile
Published
2022-12-26T00:00Z
EPSS history
Timeline
  • 26 DEC 00:00Z
    In Directus before 9.7.0, the default settings of CORS_ORIGIN and CORS_ENABLED are true
    cvelistv5