9.1
CRITICAL
CVE-2021-39185
Http4s CORS Origin Reflection and Null Origin Vulnerabilities
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.

INFO

Published Date :

Sept. 1, 2021, 8:15 p.m.

Last Modified :

Sept. 15, 2021, 12:12 a.m.

Remotely Exploitable :

Yes !

Impact Score :

5.2

Exploitability Score :

3.9
Affected Products

The following products are affected by CVE-2021-39185 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Typelevel http4s
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2021-39185.

URL Resource
https://github.com/http4s/http4s/releases/tag/v0.23.2 Third Party Advisory
https://github.com/http4s/http4s/security/advisories/GHSA-52cf-226f-rhr6 Patch Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-39185 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-39185 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Sep. 15, 2021

    Action Type Old Value New Value
    Added CVSS V2 NIST (AV:N/AC:L/Au:N/C:P/I:P/A:N)
    Changed Reference Type https://github.com/http4s/http4s/releases/tag/v0.23.2 No Types Assigned https://github.com/http4s/http4s/releases/tag/v0.23.2 Third Party Advisory
    Changed Reference Type https://github.com/http4s/http4s/security/advisories/GHSA-52cf-226f-rhr6 No Types Assigned https://github.com/http4s/http4s/security/advisories/GHSA-52cf-226f-rhr6 Patch, Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:typelevel:http4s:*:*:*:*:*:*:*:* versions up to (including) 0.21.26 *cpe:2.3:a:typelevel:http4s:*:*:*:*:*:*:*:* versions from (including) 0.22.0 up to (including) 0.22.2 *cpe:2.3:a:typelevel:http4s:0.23.0:*:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:0.23.1:*:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone1:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone10:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone11:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone12:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone13:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone14:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone15:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone16:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone17:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone18:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone19:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone2:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone20:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone21:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone22:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone23:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone24:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone3:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone4:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone5:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone6:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone7:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone8:*:*:*:*:*:* *cpe:2.3:a:typelevel:http4s:1.0.0:milestone9:*:*:*:*:*:*
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-39185 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2021-39185 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.15 }} 0.01%

score

0.50845

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability