CVE-2021-39185
9.1 CRITICALHttp4s is a minimal, idiomatic Scala interface for HTTP services
Published: 2021-09-01 · Last updated: 2026-06-17
Severity and scoring
- CVSS
- 9.1 CRITICAL
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- CWE
- CWE-346
Affected products
| Vendor | Product |
|---|---|
| typelevel | http4s |
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.
Source: NVD
References
- [NVD]https://nvd.nist.gov/vuln/detail/CVE-2021-39185
- [Other]https://github.com/http4s/http4s/releases/tag/v0.23.2
- [Patch]https://github.com/http4s/http4s/security/advisories/GHSA-52cf-226f-rhr6
- [Other]https://github.com/http4s/http4s/releases/tag/v0.23.2
- [Patch]https://github.com/http4s/http4s/security/advisories/GHSA-52cf-226f-rhr6
Related CVEs
Same vendor
- CVE-2021-41084 — http4s is an open source scala interface for HTTP (8.7 HIGH)
Same CWE
- CVE-2026-12304 — Same-origin policy bypass in the Networking: Cookies component (9.1 CRITICAL)
- CVE-2026-47825 — Spring Cloud Gateway Server forwards the X-Forwarded-For and Forwarded headers from untrusted proxies in certain configuration scenarios (8.6 HIGH)
- CVE-2026-9595 — Impact: When a user-configured proxy on webpack-dev-server has a broad context (e.g (5.3 MEDIUM)
- CVE-2026-11624 — The Model Context Protocol has a security warning advising servers to validate the "Origin" header on all incoming connections to prevent...
- CVE-2026-45173 — Idira Identity Browser Extension (Chrome, Firefox, and Edge builds) versions prior to 26.8.1 exhibit an origin validation flaw within its...