CVE-2021-39185Default CORS config allows any origin with credentials
- 9.1CriticalCVSS base score
- 0.59%Exploitation in 30 daysEPSS · top 51% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 16 days later
· 16 days later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Critical9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVDNVD · Modified | 3.1 | Critical9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
- EPSS (exploitation in 30 days)
- 0.59% · top 51% of all CVEs (17 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.1.
Affected products
Affected packages
Affected packages6
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.http4s:http4s-server_2.10GHSA-52cf-226f-rhr6 (opens in a new tab)
- Mavenorg.http4s:http4s-server_2.11GHSA-52cf-226f-rhr6 (opens in a new tab)
- Mavenorg.http4s:http4s-server_2.12GHSA-52cf-226f-rhr6 (opens in a new tab)
- Mavenorg.http4s:http4s-server_2.13GHSA-52cf-226f-rhr6 (opens in a new tab)
- Mavenorg.http4s:http4s-server_2.13.0-M5GHSA-52cf-226f-rhr6 (opens in a new tab)
- Mavenorg.http4s:http4s-server_3GHSA-52cf-226f-rhr6 (opens in a new tab)
References
References2
- https://github.com/http4s/http4s/security/advisories/GHSA-52cf-226f-rhr6 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/http4s/http4s/releases/tag/v0.23.2 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-1978 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-52cf-226f-rhr6 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-39185)Record last updated .