Description
undici is an HTTP/1.1 client, written from scratch for Node.js.`=< undici@5.8.0` users are vulnerable to _CRLF Injection_ on headers when using unsanitized input as request headers, more specifically, inside the `content-type` header. Example: ``` import { request } from 'undici' const unsanitizedContentTypeInput = 'application/json\r\n\r\nGET /foo2 HTTP/1.1' await request('http://localhost:3000, { method: 'GET', headers: { 'content-type': unsanitizedContentTypeInput }, }) ``` The above snippet will perform two requests in a single `request` API call: 1) `http://localhost:3000/` 2) `http://localhost:3000/foo2` This issue was patched in Undici v5.8.1. Sanitize input when sending content-type headers using user input as a workaround.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| nodejs | undici | =< 5.8.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-undici | 5.8.2+dfsg1+~cs18.9.18.1-1 | — |
| Debian 13 | node-undici | 5.8.2+dfsg1+~cs18.9.18.1-1 | — |
| Debian 12 | node-undici | 5.8.2+dfsg1+~cs18.9.18.1-1 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP4 | nodejs16 | 16.17.0-150400.3.6.1 | SUSE-SU-2022:3250-1 |
| SLES 15 SP3 | nodejs16 | 16.17.0-150300.7.9.1 | SUSE-SU-2022:3251-1 |
| SLES 12 | nodejs16 | 16.17.0-8.9.1 | SUSE-SU-2022:3196-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.4 | nodejs16 | 16.17.0-150400.3.6.1 | SUSE-SU-2022:3250-1 |
| openSUSE Leap 15.3 | nodejs16 | 16.17.0-150300.7.9.1 | SUSE-SU-2022:3251-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | undici | < 5.8.2 | 5.8.2 | GHSA-f772-66g8-q5h3 |
Advisories 6
- WID-SEC-2026-3596 IBM App Connect Enterprise: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 10, 2026
- WID-SEC-2026-3621 IBM App Connect Enterprise: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 9, 2026
- SUSE-SU-2022:3196-1 Security update for nodejs16 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:3251-1 Security update for nodejs16 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:3250-1 Security update for nodejs16 SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2022-1933 Red Hat Satellite und Red Hat Enterprise Linux: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 18, 2023