CVE-2022-31150 MEDIUM

CVE-2022-31150: CRLF injection in request headers

Vendor Nodejs
Product undici
Weakness CWE-93 · CRLF injection
Published July 19, 2022
Last update April 22, 2025

CVSS base score

5.3/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality None
Integrity Low

CVSS vector

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

What the vulnerability does

01Description

undici is an HTTP/1.1 client, written from scratch for Node.js. It is possible to inject CRLF sequences into request headers in undici in versions less than 5.7.1. A fix was released in version 5.8.0. Sanitizing all HTTP headers from untrusted sources to eliminate `\r\n` is a workaround for this issue.

Key dates

02Disclosure timeline

July 19, 2022 CVE published
April 22, 2025 Record updated