CVE-2021-39185
September 01, 2021
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.
Affected Packages
org.http4s:http4s-server_3 (JAVA):
Affected version(s) >=0.22.0 <0.22.3Fix Suggestion:
Update to version 0.22.3org.http4s:http4s-server_2.12 (JAVA):
Affected version(s) >=0.22.0 <0.22.3Fix Suggestion:
Update to version 0.22.3org.http4s:http4s-server_2.13 (JAVA):
Affected version(s) >=0.22.0 <0.22.3Fix Suggestion:
Update to version 0.22.3org.http4s:http4s-server_3 (JAVA):
Affected version(s) >=0.23.0 <0.23.2Fix Suggestion:
Update to version 0.23.2org.http4s:http4s-server_2.13 (JAVA):
Affected version(s) >=0.23.0 <0.23.2Fix Suggestion:
Update to version 0.23.2org.http4s:http4s-server_2.12 (JAVA):
Affected version(s) >=0.23.0 <0.23.2Fix Suggestion:
Update to version 0.23.2org.http4s:http4s-server_2.12 (JAVA):
Affected version(s) >=0.10.0-M10 <0.21.27Fix Suggestion:
Update to version 0.21.27org.http4s:http4s-server_2.13 (JAVA):
Affected version(s) >=0.10.0-M10 <0.21.27Fix Suggestion:
Update to version 0.21.27Related ResourcesĀ (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
9.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
9.1
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
NONE
CVSS v2
Base Score:
6.4
Access Vector
NETWORK
Access Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
NONE
Weakness Type (CWE)
Origin Validation Error
EPSS
Base Score:
0.17