CVE-2021-39185 — Vulnerability in org.http4s:http4s-server_2.12 —...
Default CORS config allows any origin with credentials
Summary
Advisory Timeline
- First published September 2, 2021 (1866 days ago).
- Last revised July 8, 2026 — 1770 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 0.22.3 for org.http4s:http4s-server_2.12 -->
<!-- Update pom.xml dependency version to 0.23.2 for org.http4s:http4s-server_2.13 -->
<!-- Update pom.xml dependency version to 0.21.27 for org.http4s:http4s-server_2.13 -->
<!-- Update pom.xml dependency version to 0.22.3 for org.http4s:http4s-server_2.13 -->
<!-- Update pom.xml dependency version to 0.21.27 for org.http4s:http4s-server_2.12 -->
<!-- Update pom.xml dependency version to 0.23.2 for org.http4s:http4s-server_3 -->
<!-- Update pom.xml dependency version to 0.22.3 for org.http4s:http4s-server_3 -->
<!-- Update pom.xml dependency version to 0.23.2 for org.http4s:http4s-server_2.12 -->
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (11)
Affects 1 ecosystem: maven (6).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| org.http4s:http4s-server_2.12 | maven | 0.22-129-24d065b, 0.22-143-49b5a8d, 0.22-53-01128f5, 0.22-96-55d3184 (+3 more) | 0.22.3 |
| org.http4s:http4s-server_2.13 | maven | 0.23.0, 0.23.1 | 0.23.2 |
| org.http4s:http4s-server_2.13 | maven | 0.10.0-M10, 0.21.0, 0.21.0-M1, 0.21.0-M2 (+34 more) | 0.21.27 |
| org.http4s:http4s-server_2.13.0-M5 | maven | 0.20.0, 0.20.0-RC1, 0.20.1, 0.20.10 (+8 more) | Range-based data available |
| org.http4s:http4s-server_2.10 | maven | 0.10.0, 0.10.1, 0.11.0, 0.11.1 (+127 more) | Range-based data available |
| org.http4s:http4s-server_2.13 | maven | 0.22-129-24d065b, 0.22-143-49b5a8d, 0.22-53-01128f5, 0.22-96-55d3184 (+3 more) | 0.22.3 |
| org.http4s:http4s-server_2.11 | maven | 0.10.0, 0.10.1, 0.11.0, 0.11.1 (+216 more) | Range-based data available |
| org.http4s:http4s-server_2.12 | maven | 0.10.0-M10, 0.15.0, 0.15.0a, 0.15.1 (+180 more) | 0.21.27 |
| org.http4s:http4s-server_3 | maven | 0.23.0, 0.23.1 | 0.23.2 |
| org.http4s:http4s-server_3 | maven | 0.22.0, 0.22.1, 0.22.2 | 0.22.3 |
| org.http4s:http4s-server_2.12 | maven | 0.23.0, 0.23.1 | 0.23.2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-346Origin Validation ErrorMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
References
Frequently Asked Questions
- What is CVE-2021-39185?
- Default CORS config allows any origin with credentials This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
- How do I check if my project is affected by CVE-2021-39185?
- CVE-2021-39185 affects org.http4s:http4s-server_2.12, org.http4s:http4s-server_2.13 and org.http4s:http4s-server_2.13.0-M5 (and 3 more). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-39185 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2026-107726CRITICAL
Hazelcast allows arbitrary member memory access by low-privileged client
- CVE-2026-69204CRITICAL
Http4s Ember accepts Transfer-Encoding combined with Content-Length (CL.TE request smuggling)
- CVE-2026-61741CRITICAL
http4s-scala-xml has an XML External Entity (XXE) processing issue
- CVE-2026-107282CRITICAL
AsyncHttpClient: Replay to a different host sends the original host request and credentials to the new host
- CVE-2021-41084HIGH
Response Splitting from unsanitized headers
- CVE-2026-69205HIGH
Http4s Ember Transfer-Encoding value parsing (TE.CL / TE.0 request smuggling)
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies