CVE Vulnerabilities

CVE-2023-23936

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Published: Feb 16, 2023 | Modified: Feb 24, 2023
CVSS 3.x
5.4
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu

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.

Weakness

The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.

Affected Software

Name Vendor Start Version End Version
Node.js Nodejs 16.0.0 (including) 16.19.1 (excluding)
Node.js Nodejs 18.0.0 (including) 18.14.1 (excluding)
Node.js Nodejs 19.0.0 (including) 19.6.1 (excluding)
Undici Nodejs 2.0.0 (including) 5.19.1 (excluding)

Potential Mitigations

References