cve.bz

CVE-2021-39185 typelevel http4s: Origin Validation Error

9.1 criticalEPSS 0.6%Fix available

Critical (9.1) in typelevel http4s. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in org.http4s:http4s-server_3 0.22.3, 0.23.2.

On this page
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.

Severity

CVSS 3.1

9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 49th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-346 Origin Validation Error
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-39185 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-39185?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-39185?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-39185 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
typelevel:http4sthrough 0.21.26
typelevel:http4sfrom 0.22.0 through 0.22.2
typelevel:http4s0.23.0
typelevel:http4s0.23.1
typelevel:http4s1.0.0:milestone1
typelevel:http4s1.0.0:milestone10
typelevel:http4s1.0.0:milestone11
typelevel:http4s1.0.0:milestone12
typelevel:http4s1.0.0:milestone13
typelevel:http4s1.0.0:milestone14
typelevel:http4s1.0.0:milestone15
typelevel:http4s1.0.0:milestone16
typelevel:http4s1.0.0:milestone17
typelevel:http4s1.0.0:milestone18
typelevel:http4s1.0.0:milestone19
typelevel:http4s1.0.0:milestone2
typelevel:http4s1.0.0:milestone20
typelevel:http4s1.0.0:milestone21
typelevel:http4s1.0.0:milestone22
typelevel:http4s1.0.0:milestone23
typelevel:http4s1.0.0:milestone24
typelevel:http4s1.0.0:milestone3
typelevel:http4s1.0.0:milestone4
typelevel:http4s1.0.0:milestone5
typelevel:http4s1.0.0:milestone6
typelevel:http4s1.0.0:milestone7
typelevel:http4s1.0.0:milestone8
typelevel:http4s1.0.0:milestone9

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-52cf-226f-rhr6Mavenorg.http4s:http4s-server_2.13.0-M5all versionsno fix published
GHSA-52cf-226f-rhr6Mavenorg.http4s:http4s-server_3>=0.22.0 <0.22.30.22.3
GHSA-52cf-226f-rhr6Mavenorg.http4s:http4s-server_3>=0.23.0 <0.23.20.23.2
GHSA-52cf-226f-rhr6Mavenorg.http4s:http4s-server_2.10all versionsno fix published
GHSA-52cf-226f-rhr6Mavenorg.http4s:http4s-server_2.11all versionsno fix published
GHSA-52cf-226f-rhr6Mavenorg.http4s:http4s-server_2.12<0.21.270.21.27
GHSA-52cf-226f-rhr6Mavenorg.http4s:http4s-server_2.12>=0.22.0 <0.22.30.22.3
GHSA-52cf-226f-rhr6Mavenorg.http4s:http4s-server_2.12>=0.23.0 <0.23.20.23.2
GHSA-52cf-226f-rhr6Mavenorg.http4s:http4s-server_2.13<0.21.270.21.27
GHSA-52cf-226f-rhr6Mavenorg.http4s:http4s-server_2.13>=0.22.0 <0.22.30.22.3
GHSA-52cf-226f-rhr6Mavenorg.http4s:http4s-server_2.13>=0.23.0 <0.23.20.23.2

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-346 (16).

References

Check your stackJSON