Skip to content
OpenAdvisories
High · 7.5 CVE-2023-24807 EUVD-2023-0786GHSA-r6ch-mqf9-qc9w

Undici vulnerable to Regular Expression Denial of Service in Headers

Published Feb 16, 2023 · Updated Mar 10, 2025 · Assigned by GitHub_M

Description

Undici is an HTTP/1.1 client for Node.js. Prior to version 5.19.1, the `Headers.set()` and `Headers.append()` methods are vulnerable to Regular Expression Denial of Service (ReDoS) attacks when untrusted values are passed into the functions. This is due to the inefficient regular expression used to normalize the values in the `headerValueNormalize()` utility function. This vulnerability was patched in v5.19.1. No known workarounds are available.

Affected products

VendorProductAffectedFixed
nodejs undici < 5.19.1 —

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 5.19.1+dfsg1+~cs20.10.9.5-1 —
Debian 13 node-undici 5.19.1+dfsg1+~cs20.10.9.5-1 —
Debian 12 node-undici 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u1 —
ReleasePackageFixed inAdvisory
RHEL 9 nodejs +3 1:16.19.1-1.el9_2 RHSA-2023:2655, RHSA-2023:2654
RHEL 9 nodejs-devel 1:18.14.2-2.module+el9.2.0.z+18497+a402347c RHSA-2023:2654
RHEL 9 nodejs-nodemon 2.0.20-2.module+el9.2.0.z+18497+a402347c RHSA-2023:2655, RHSA-2023:2654
RHEL 9 nodejs-packaging +1 2021.06-4.module+el9.1.0+15718+e52ec601 RHSA-2023:2654
RHEL 9 npm 1:8.19.3-1.16.19.1.1.el9_2 RHSA-2023:2655, RHSA-2023:2654
RHEL 8 nodejs +3 1:16.19.1-1.module+el8.7.0+18373+704f5cef RHSA-2023:1583, RHSA-2023:1582
RHEL 8 nodejs-nodemon 2.0.20-2.module+el8.7.0+18445+9493b6ea RHSA-2023:1583, RHSA-2023:1582
RHEL 8 nodejs-packaging 25-1.module+el8.5.0+10992+fac5fe06 RHSA-2023:1583, RHSA-2023:1582
RHEL 8 nodejs-packaging-bundler 2021.06-4.module+el8.7.0+15582+19c314fa RHSA-2023:1583
RHEL 8 npm 1:8.19.3-1.16.19.1.1.module+el8.7.0+18373+704f5cef RHSA-2023:1583, RHSA-2023:1582
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.0 EUS nodejs +3 1:16.20.2-1.el9_0 RHSA-2023:5533
RHEL 9.0 EUS npm 1:8.19.4-1.16.20.2.1.el9_0 RHSA-2023:5533

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 nodejs +3 1:16.19.1-1.el9_2 ALSA-2023:2655, ALSA-2023:2654
AlmaLinux 9 nodejs-devel 1:18.14.2-2.module_el9.2.0+29+de583a0b ALSA-2023:2654
AlmaLinux 9 nodejs-nodemon 2.0.20-2.module_el9.2.0+29+de583a0b ALSA-2023:2654
AlmaLinux 9 nodejs-packaging +1 2021.06-4.module_el9.1.0+13+d9a595ea ALSA-2023:2654
AlmaLinux 9 npm 1:8.19.3-1.16.19.1.1.el9_2 ALSA-2023:2655, ALSA-2023:2654
AlmaLinux 8 nodejs +3 1:16.19.1-1.module_el8.7.0+3496+a59a3324 ALSA-2023:1583, ALSA-2023:1582
AlmaLinux 8 nodejs-nodemon 2.0.20-2.module_el8.7.0+3497+c65299e7 ALSA-2023:1583, ALSA-2023:1582
AlmaLinux 8 nodejs-packaging 25-1.module_el8.5.0+2605+45d748af ALSA-2023:1583, ALSA-2023:1582
AlmaLinux 8 nodejs-packaging-bundler 2021.06-4.module_el8.7.0+3343+ea2b7901 ALSA-2023:1583
AlmaLinux 8 npm 1:8.19.3-1.16.19.1.1.module_el8.7.0+3496+a59a3324 ALSA-2023:1583, ALSA-2023:1582

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 nodejs 1:16.19.1-1.el9_2 RLSA-2023:2655
Rocky Linux 9 nodejs-nodemon 2.0.20-3.el9_2 RLSA-2023:2655
Rocky Linux 9 nodejs-packaging 2021.06-4.module+el9.7.0+40017+f0db1785 RLSA-2023:2654
Rocky Linux 8 nodejs 1:16.19.1-1.module+el8.7.0+1178+d52dba78 RLSA-2023:1583, RLSA-2023:1582
Rocky Linux 8 nodejs-nodemon 2.0.20-2.module+el8.7.0+1108+49363b0d RLSA-2023:1583, RLSA-2023:1582
Rocky Linux 8 nodejs-packaging 25-1.module+el8.6.0+1046+80feca58 RLSA-2023:1583, RLSA-2023:1582
ReleasePackageFixed inAdvisory
SLES 15 SP4 nodejs16 16.19.1-150400.3.15.1 SUSE-SU-2023:0608-1
SLES 15 SP4 nodejs18 18.14.2-150400.9.6.2 SUSE-SU-2023:0738-1
SLES 15 SP3 nodejs16 16.19.1-150300.7.18.1 SUSE-SU-2023:0673-1
SLES 12 nodejs16 16.19.1-8.24.1 SUSE-SU-2023:0609-1
SLES 12 nodejs18 18.14.2-8.6.2 SUSE-SU-2023:0715-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP3 nodejs16 16.19.1-150300.7.18.1 SUSE-SU-2023:0673-1
SLE HPC 15 SP3 nodejs16 16.19.1-150300.7.18.1 SUSE-SU-2023:0673-1
SUSE Manager Server 4.2 nodejs16 16.19.1-150300.7.18.1 SUSE-SU-2023:0673-1
SUSE Enterprise Storage 7.1 nodejs16 16.19.1-150300.7.18.1 SUSE-SU-2023:0673-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed nodejs18 18.14.2-1.1 openSUSE-SU-2024:12725-1
openSUSE Tumbleweed nodejs19 19.7.0-1.1 openSUSE-SU-2024:12726-1
openSUSE Leap 15.4 nodejs16 16.19.1-150400.3.15.1 SUSE-SU-2023:0608-1
openSUSE Leap 15.4 nodejs18 18.14.2-150400.9.6.2 SUSE-SU-2023:0738-1
ReleasePackageFixed inAdvisory
Alpine v3.24 nodejs 18.14.1-r0 —
Alpine v3.23 nodejs 18.14.1-r0 —
Alpine v3.22 nodejs 18.14.1-r0 —
Alpine v3.21 nodejs 18.14.1-r0 —
Alpine v3.20 nodejs 18.14.1-r0 —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 nodejs 18.14.1-r0 —
Alpine v3.18 nodejs 18.14.1-r0 —
Alpine v3.17 nodejs 18.14.1-r0 —
Alpine v3.16 nodejs 16.19.1-r0 —
Alpine v3.15 nodejs 16.19.1-r0 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) nodejs 16.19.1-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 nodejs +3 1:16.19.1-1.el9_2 ELSA-2023-2655, ELSA-2023-2654
Oracle Linux 9 nodejs-devel 1:18.14.2-2.module+el9.2.0+21038+115df6a2 ELSA-2023-2654
Oracle Linux 9 nodejs-nodemon 2.0.20-2.module+el9.2.0+21038+115df6a2 ELSA-2023-2655, ELSA-2023-2654
Oracle Linux 9 nodejs-packaging +1 2021.06-4.module+el9.1.0+20762+f52d7401 ELSA-2023-2654
Oracle Linux 9 npm 1:8.19.3-1.16.19.1.1.el9_2 ELSA-2023-2655, ELSA-2023-2654
Oracle Linux 8 nodejs +3 1:16.19.1-1.module+el8.7.0+21021+1eb7f63d ELSA-2023-1583, ELSA-2023-1582
Oracle Linux 8 nodejs-nodemon 2.0.20-2.module+el8.7.0+21020+b7aeeb08 ELSA-2023-1583, ELSA-2023-1582
Oracle Linux 8 nodejs-packaging 25-1.module+el8.5.0+20388+4b61e68d ELSA-2023-1583, ELSA-2023-1582
Oracle Linux 8 nodejs-packaging-bundler 2021.06-4.module+el8.7.0+20766+0a247725 ELSA-2023-1583
Oracle Linux 8 npm 1:8.19.3-1.16.19.1.1.module+el8.7.0+21021+1eb7f63d ELSA-2023-1583, ELSA-2023-1582

Affected packages

EcosystemPackageAffectedFixedRecord
npm undici < 5.19.1 5.19.1 GHSA-r6ch-mqf9-qc9w

Advisories 27

References