Skip to content
OpenAdvisories
Medium · 4.6 CVE-2026-1527 EUVD-2026-11701GHSA-4992-7rv2-5pvq

undici is vulnerable to CRLF Injection via upgrade option

Published Mar 12, 2026 · Updated Mar 13, 2026 · Assigned by openjs

Description

ImpactWhen an application passes user-controlled input to the upgrade option of client.request(), an attacker can inject CRLF sequences (\r\n) to:

* Inject arbitrary HTTP headers
* Terminate the HTTP request prematurely and smuggle raw data to non-HTTP services (Redis, Memcached, Elasticsearch)
The vulnerability exists because undici writes the upgrade value directly to the socket without validating for invalid header characters:

// lib/dispatcher/client-h1.js:1121
if (upgrade) {
header += `connection: upgrade\r\nupgrade: ${upgrade}\r\n`
}

Affected products

VendorProductAffectedFixed
undici undici < 6.24.0; 7.0.0 < 7.24.0 6.24.0: 7.24.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.

ReleasePackageFixed inAdvisory
Debian 14 node-undici 7.24.5+dfsg+~cs3.2.0-1 —
Debian 13 node-undici No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-undici No fix yet —
Ubuntu 26.04 LTS node-undici No fix yet —
Ubuntu 25.10 node-undici No fix yet —
Ubuntu 24.04 LTS node-undici No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 nodejs24 +4 1:24.14.1-2.el10_1 RHSA-2026:7675
RHEL 10 nodejs24-npm 1:11.11.0-1.24.14.1.2.el10_1 RHSA-2026:7675
RHEL 9 nodejs +4 1:24.14.1-2.module+el9.7.0+24166+51c9666b RHSA-2026:7350
RHEL 9 nodejs-nodemon 3.0.3-3.module+el9.7.0+24166+51c9666b RHSA-2026:7350
RHEL 9 nodejs-packaging +1 2021.06-6.module+el9.7.0+24166+51c9666b RHSA-2026:7350
RHEL 9 npm 1:11.11.0-1.24.14.1.2.module+el9.7.0+24166+51c9666b RHSA-2026:7350
RHEL 9 v8-13.6-devel 3:13.6.233.17-1.24.14.1.2.module+el9.7.0+24166+51c9666b RHSA-2026:7350
RHEL 8 nodejs +4 1:24.14.1-2.module+el8.10.0+24190+49a46c75 RHSA-2026:7670
RHEL 8 nodejs-nodemon 3.0.3-1.module+el8.10.0+24190+49a46c75 RHSA-2026:7670
RHEL 8 nodejs-packaging +1 2021.06-6.module+el8.10.0+24190+49a46c75 RHSA-2026:7670
RHEL 8 npm 1:11.11.0-1.24.14.1.2.module+el8.10.0+24190+49a46c75 RHSA-2026:7670
RHEL 8 v8-13.6-devel 3:13.6.233.17-1.24.14.1.2.module+el8.10.0+24190+49a46c75 RHSA-2026:7670

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 nodejs24-docs 1:24.14.1-2.el10_1 ALSA-2026:7675
AlmaLinux 10 nodejs24-npm 1:11.11.0-1.24.14.1.2.el10_1 ALSA-2026:7675
AlmaLinux 9 nodejs +4 1:24.14.1-2.module_el9.7.0+222+ef1c61e1 ALSA-2026:7350
AlmaLinux 9 nodejs-nodemon 3.0.3-3.module_el9.7.0+209+ecf6523e ALSA-2026:7350
AlmaLinux 9 nodejs-packaging 2021.06-6.module_el9.7.0+209+ecf6523e ALSA-2026:7350
AlmaLinux 9 nodejs-packaging-bundler 2021.06-6.module_el9.7.0+198+8bf605ba ALSA-2026:7350
AlmaLinux 9 npm 1:11.11.0-1.24.14.1.2.module_el9.7.0+222+ef1c61e1 ALSA-2026:7350
AlmaLinux 9 v8-13.6-devel 3:13.6.233.17-1.24.14.1.2.module_el9.7.0+222+ef1c61e1 ALSA-2026:7350
AlmaLinux 8 nodejs +4 1:24.14.1-2.module_el8.10.0+4160+4819ac42 ALSA-2026:7670
AlmaLinux 8 nodejs-nodemon 3.0.3-1.module_el8.10.0+4061+f8ceeab9 ALSA-2026:7670
AlmaLinux 8 nodejs-packaging +1 2021.06-6.module_el8.10.0+4086+70facd4a ALSA-2026:7670
AlmaLinux 8 npm 1:11.11.0-1.24.14.1.2.module_el8.10.0+4160+4819ac42 ALSA-2026:7670
AlmaLinux 8 v8-13.6-devel 3:13.6.233.17-1.24.14.1.2.module_el8.10.0+4160+4819ac42 ALSA-2026:7670

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 nodejs24 1:24.14.1-2.el10_1 RLSA-2026:7675
Rocky Linux 9 nodejs-nodemon 3.0.3-3.module+el9.7.0+40025+0e0cf6b2 RLSA-2026:7350
Rocky Linux 9 nodejs-packaging 2021.06-6.module+el9.7.0+40052+e32ea525 RLSA-2026:7350
Rocky Linux 8 nodejs-nodemon 3.0.3-1.module+el8.10.0+2084+ab509703 RLSA-2026:7670
Rocky Linux 8 nodejs-packaging 2021.06-6.module+el8.10.0+40048+6d99f608 RLSA-2026:7670

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 nodejs20 +4 1:20.20.1-1.amzn2023.0.3 ALAS2023-2026-1524
Amazon Linux 2023 nodejs20-npm 1:10.8.2-1.20.20.1.1.amzn2023.0.3 ALAS2023-2026-1524
Amazon Linux 2023 nodejs22 +4 1:22.22.1-1.amzn2023.0.2 ALAS2023-2026-1525
Amazon Linux 2023 nodejs22-npm 1:10.9.4-1.22.22.1.1.amzn2023.0.2 ALAS2023-2026-1525
Amazon Linux 2023 nodejs24 +4 1:24.14.0-1.amzn2023.0.2 ALAS2023-2026-1526
Amazon Linux 2023 nodejs24-npm 1:11.9.0-1.24.14.0.1.amzn2023.0.2 ALAS2023-2026-1526
Amazon Linux 2023 v8-11.3-devel 3:11.3.244.8-1.20.20.1.1.amzn2023.0.3 ALAS2023-2026-1524
Amazon Linux 2023 v8-12.4-devel 3:12.4.254.21-1.22.22.1.1.amzn2023.0.2 ALAS2023-2026-1525
Amazon Linux 2023 v8-13.6-devel 3:13.6.233.17-1.24.14.0.1.amzn2023.0.2 ALAS2023-2026-1526

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 nodejs24 +4 1:24.14.1-2.0.2.el10_1 ELSA-2026-7675
Oracle Linux 10 nodejs24-npm 1:11.11.0-1.24.14.1.2.0.2.el10_1 ELSA-2026-7675
Oracle Linux 9 nodejs +4 1:24.14.1-2.module+el9.7.0+90866+5a953a4c ELSA-2026-7350
Oracle Linux 9 nodejs-nodemon 3.0.3-3.module+el9.7.0+90866+5a953a4c ELSA-2026-7350
Oracle Linux 9 nodejs-packaging +1 2021.06-6.module+el9.7.0+90866+5a953a4c ELSA-2026-7350
Oracle Linux 9 npm 1:11.11.0-1.24.14.1.2.module+el9.7.0+90866+5a953a4c ELSA-2026-7350
Oracle Linux 9 v8-13.6-devel 3:13.6.233.17-1.24.14.1.2.module+el9.7.0+90866+5a953a4c ELSA-2026-7350
Oracle Linux 8 nodejs +4 1:24.14.1-2.module+el8.10.0+90873+35652ecc ELSA-2026-7670
Oracle Linux 8 nodejs-nodemon 3.0.3-1.module+el8.10.0+90873+35652ecc ELSA-2026-7670
Oracle Linux 8 nodejs-packaging +1 2021.06-6.module+el8.10.0+90873+35652ecc ELSA-2026-7670
Oracle Linux 8 npm 1:11.11.0-1.24.14.1.2.module+el8.10.0+90873+35652ecc ELSA-2026-7670
Oracle Linux 8 v8-13.6-devel 3:13.6.233.17-1.24.14.1.2.module+el8.10.0+90873+35652ecc ELSA-2026-7670

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling code-server 4.110.1-r2 —
Wolfi rolling jitsucom-jitsu-rotor +1 2.11.0-r17 —
Wolfi rolling langfuse-3-worker 3.179.1-r1 —
Wolfi rolling renovate 43.84.0-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm undici < 6.24.0 6.24.0 GHSA-4992-7rv2-5pvq
npm undici >= 7.0.0, < 7.24.0 7.24.0 GHSA-4992-7rv2-5pvq

Advisories 18

References