CVE-2022-31150: Node.js Undici
Medium severity, CVSS 6.5. EPSS: 1.4% probability of exploitation activity in the next 30 days.
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.
What to do
The record states a fixed version for the versions it affects. If you run one, update to it.
- Node.js Undici, before 5.8.0: fixed in 5.8.0
Affected products
Affected packages
- undici (npm)
Published 2022-07-19. Last modified 2026-06-17.