Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.http4s/http4s-server
  4. ›
  5. CVE-2021-41084

CVE-2021-41084: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

September 22, 2021 (updated October 21, 2021)

http4s is an open source scala interface for HTTP. In affected versions http4s is vulnerable to response-splitting or request-splitting attacks when untrusted user input is used to create any of the following fields: Header names (Header.nameå), Header values (Header.value), Status reason phrases (Status.reason), URI paths (Uri.Path), URI authority registered names (URI.RegName) (through 0.21). This issue has been resolved in versions 0.21.30, 0.22.5, 0.23.4, and 1.0.0-M27 perform the following. As a matter of practice http4s services and client applications should sanitize any user input in the aforementioned fields before returning a request or response to the backend. The carriage return, newline, and null characters are the most threatening.

References

  • github.com/advisories/GHSA-5vcm-3xc3-w7x3
  • github.com/http4s/http4s/commit/d02007db1da4f8f3df2dbf11f1db9ac7afc3f9d8
  • github.com/http4s/http4s/security/advisories/GHSA-5vcm-3xc3-w7x3
  • nvd.nist.gov/vuln/detail/CVE-2021-41084

Code Behaviors & Features

Detect and mitigate CVE-2021-41084 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.21.28, all versions starting from 0.22.0 up to 0.22.4, all versions starting from 0.23.0 up to 0.23.3

Fixed versions

  • 0.21.29
  • 0.22.5
  • 0.23.4

Solution

Upgrade to versions 0.21.29, 0.22.5, 0.23.4 or above.

Impact 4.7 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

maven/org.http4s/http4s-server/CVE-2021-41084.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:12 +0000.