CVE-2021-39185CWE-346

Default CORS config allows any origin with credentials

Critical · published September 1, 2021

CVSS v3.1
9.1
EPSS
1%
Percentile
47.7
In the wild
Unconfirmed
What it is

🚨 An origin reflection attack could exploit your default CORS configuration in Http4s — imagine someone sneaking in as a trusted guest when they shouldn't be! 🔥 Think of your web application like a restaurant with a guest list. If anyone can simply say they’re on the list without verification, it can lead to chaos — diners could get served the wrong things or worse, have their food tampered with! An attacker could leverage this vulnerability to send unauthorized requests from trusted origins, potentially leading to data leaks or unauthorized actions on your server. The stakes are high: sensitive information could be exposed or corrupted, ruining your application’s integrity.

Put simply

Think of your web application like a restaurant with a guest list. If anyone can simply say they’re on the list without verification, it can lead to chaos — diners could get served the wrong things or worse, have their food tampered with! This vulnerability in Http4s allows malicious actors to bypass CORS protections due to improper handling of origin requests, making it possible for them to impersonate trusted sources. This includes both origin reflection and null origin attacks, jeopardizing secure communication channels.

What to do

An attacker could leverage this vulnerability to send unauthorized requests from trusted origins, potentially leading to data leaks or unauthorized actions on your server. The stakes are high: sensitive information could be exposed or corrupted, ruining your application’s integrity. Upgrade to the fixed versions: 0.21.27, 0.22.3, 0.23.2, or 1.0.0-M25 to close this security gap. Also, review your CORS configuration to ensure no deprecated settings are in use, and consider implementing stricter origin checks. You've got this! By following these steps, you'll be fortifying your defenses in no time. 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00594 · 47.7th percentile
Weakness
CWE-346 · Origin Validation Error
Published
2021-09-01T19:25Z
EPSS history
Timeline
  • 01 SEP 19:25Z
    Default CORS config allows any origin with credentials
    cvelistv5