CVE-2021-39185 Details
Description
Http4s is a minimal, idiomatic Scala interface for HTTP services. In http4s versions 0.21.26 and prior, 0.22.0 through 0.22.2, 0.23.0, 0.23.1, and 1.0.0-M1 through 1.0.0-M24, the default CORS configuration is vulnerable to an origin reflection attack. The middleware is also susceptible to a Null Origin Attack. The problem is fixed in 0.21.27, 0.22.3, 0.23.2, and 1.0.0-M25. The original `CORS` implementation and `CORSConfig` are deprecated. See the GitHub GHSA for more information, including code examples and workarounds.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/http4s/http4s/releases/tag/v0.23.2 | CVE | Third Party Advisory |
| https://github.com/http4s/http4s/security/advisories/GHSA-52cf-226f-rhr6 | CVE | PatchThird Party Advisory |
| https://github.com/http4s/http4s/releases/tag/v0.23.2 | [email protected] | Third Party Advisory |
| https://github.com/http4s/http4s/security/advisories/GHSA-52cf-226f-rhr6 | [email protected] | PatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-346 | Origin Validation Error | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| typelevel http4s | <= 0.21.26 >= 0.22.0, <= 0.22.2 0.23.0 0.23.1 1.0.0 milestone1 1.0.0 milestone10 1.0.0 milestone11 1.0.0 milestone12 1.0.0 milestone13 1.0.0 milestone14 1.0.0 milestone15 1.0.0 milestone16 1.0.0 milestone17 1.0.0 milestone18 1.0.0 milestone19 1.0.0 milestone2 1.0.0 milestone20 1.0.0 milestone21 1.0.0 milestone22 1.0.0 milestone23 1.0.0 milestone24 1.0.0 milestone3 1.0.0 milestone4 1.0.0 milestone5 1.0.0 milestone6 1.0.0 milestone7 1.0.0 milestone8 1.0.0 milestone9 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Sep 15, 2021 | Initial Analysis | [email protected] |