Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. undici
  4. ›
  5. CVE-2023-23936

CVE-2023-23936: CRLF Injection in Nodejs ‘undici’ via host

February 16, 2023 (updated February 24, 2023)

Undici is an HTTP/1.1 client for Node.js. Starting with version 2.0.0 and prior to version 5.19.1, the undici library does not protect host HTTP header from CRLF injection vulnerabilities. This issue is patched in Undici v5.19.1. As a workaround, sanitize the headers.host string before passing to undici.

References

  • github.com/advisories/GHSA-5r9g-qh6m-jxff
  • github.com/nodejs/undici/commit/a2eff05401358f6595138df963837c24348f2034
  • github.com/nodejs/undici/releases/tag/v5.19.1
  • github.com/nodejs/undici/security/advisories/GHSA-5r9g-qh6m-jxff
  • hackerone.com/reports/1820955
  • nvd.nist.gov/vuln/detail/CVE-2023-23936

Code Behaviors & Features

Detect and mitigate CVE-2023-23936 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 starting from 2.0.0 before 5.19.1

Fixed versions

  • 5.19.1

Solution

Upgrade to version 5.19.1 or above.

Impact 5.4 MEDIUM

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

Learn more about CVSS

Weakness

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

Source file

npm/undici/CVE-2023-23936.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:54 +0000.