CVE-2023-24807
Node.js: Regular Expression Denial of Service in Headers fetch API
Overview
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-20, CWE-1333
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | undici | <5.19.1 | 5.19.1 |
Open a package to see all its vulnerabilities.
Operating systems · 68 fixes
Oracle Linux 2 releases · 5 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | nodejs +3 | 1:18.14.2-2.module+el8.7.0+21020+b7aeeb08 |
| 8 | npm | 1:9.5.0-1.18.14.2.2.module+el8.7.0+21020+b7aeeb08 |
| 8 | nodejs-nodemon | 2.0.20-3.module+el8.7.0+21021+1eb7f63d |
| 8 | nodejs-packaging +1 | 2021.06-4.module+el8.7.0+20766+0a247725 |
| 9 | nodejs-libs | 1:16.19.1-1.el9_2 |
| 9 | nodejs +3 | 1:18.14.2-2.module+el9.2.0+21038+115df6a2 |
3 more rows
Red Hat 4 releases · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 8 (nodejs:16) | nodejs-nodemon | 0:2.0.20-3.module+el8.7.0+18373+704f5cef | RHSA-2023:1582 |
| 8 (nodejs:16) | nodejs-packaging | 0:25-1.module+el8.5.0+10992+fac5fe06 | RHSA-2023:1582 |
| 8 (nodejs:16) | nodejs +3 | 1:16.19.1-1.module+el8.7.0+18373+704f5cef | RHSA-2023:1582 |
| 8 (nodejs:16) | npm | 1:8.19.3-1.16.19.1.1.module+el8.7.0+18373+704f5cef | RHSA-2023:1582 |
| 8 (nodejs:18) | nodejs-nodemon | 0:2.0.20-2.module+el8.7.0+18445+9493b6ea | RHSA-2023:1583 |
| 8 (nodejs:18) | nodejs-packaging +1 | 0:2021.06-4.module+el8.7.0+15582+19c314fa | RHSA-2023:1583 |
11 more rows
SUSE Linux Enterprise 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | nodejs16 +3 | 16.19.1-150400.3.15.1 | SUSE-SU-2023:0608-1 |
| 15.4 | nodejs18 +3 | 18.14.2-150400.9.6.2 | SUSE-SU-2023:0738-1 |
alma 4 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (nodejs:16) | nodejs +3 | 1:16.19.1-1.module_el8.7.0+3496+a59a3324 |
| 8 (nodejs:16) | npm | 1:8.19.3-1.16.19.1.1.module_el8.7.0+3496+a59a3324 |
| 8 (nodejs:16) | nodejs-nodemon | 2.0.20-3.module_el8.7.0+3496+a59a3324 |
| 8 (nodejs:16) | nodejs-packaging | 25-1.module_el8.5.0+2605+45d748af |
| 8 (nodejs:18) | nodejs +3 | 1:18.14.2-2.module_el8.7.0+3497+c65299e7 |
| 8 (nodejs:18) | npm | 1:9.5.0-1.18.14.2.2.module_el8.7.0+3497+c65299e7 |
8 more rows
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | nodejs | 18.14.1-r0 |
| 3.23 | nodejs | 18.14.1-r0 |
| 3.24 | nodejs | 18.14.1-r0 |
| edge | nodejs | 18.14.1-r0 |
debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | node-undici | 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u1 |
| 13 | node-undici | 5.19.1+dfsg1+~cs20.10.9.5-1 |
| 14 | node-undici | 5.19.1+dfsg1+~cs20.10.9.5-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| node-undici | 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u1 |
openSUSE 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | corepack18 +4 | 18.14.2-1.1 | openSUSE-SU-2024:12725-1 |
| Tumbleweed | corepack19 +4 | 19.7.0-1.1 | openSUSE-SU-2024:12726-1 |
rocky 4 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (nodejs:16) | nodejs +3 | 1:16.19.1-1.module+el8.7.0+1178+d52dba78 |
| 8 (nodejs:16) | npm | 1:8.19.3-1.16.19.1.1.module+el8.7.0+1178+d52dba78 |
| 8 (nodejs:16) | nodejs-nodemon | 2.0.20-3.module+el8.7.0+1178+d52dba78 |
| 8 (nodejs:16) | nodejs-packaging | 25-1.module+el8.6.0+1046+80feca58 |
| 8 (nodejs:18) | nodejs +3 | 1:18.14.2-2.module+el8.7.0+1177+510ae886 |
| 8 (nodejs:18) | npm | 1:9.5.0-1.18.14.2.2.module+el8.7.0+1177+510ae886 |
9 more rows
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-node-undici | 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u1 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:1583
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:2655
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-24807
- bugzilla.redhat.com https://bugzilla.redhat.com/2165824
- bugzilla.redhat.com https://bugzilla.redhat.com/2168631
- bugzilla.redhat.com https://bugzilla.redhat.com/2171935
- bugzilla.redhat.com https://bugzilla.redhat.com/2172190
- bugzilla.redhat.com https://bugzilla.redhat.com/2172204
- bugzilla.redhat.com https://bugzilla.redhat.com/2172217
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2156324
Show all 35 references
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2165824
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2171935
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2172190
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2172204
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2172217
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2178087
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-35065
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25881
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-23918
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-23920
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-23936
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-24807
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2023-2655.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2023:1583
- github.com https://github.com/nodejs/undici
- github.com https://github.com/nodejs/undici/commit/f2324e549943f0b0937b09fb1c0c16cc7c93abdf
- github.com https://github.com/nodejs/undici/releases/tag/v5.19.1
- github.com https://github.com/nodejs/undici/security/advisories/GHSA-r6ch-mqf9-qc9w
- hackerone.com https://hackerone.com/bugs?report_id=1784449
- linux.oracle.com https://linux.oracle.com/cve/CVE-2023-24807.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2023-2655.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-24807
- security.netapp.com https://security.netapp.com/advisory/ntap-20230324-0010/
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-24807
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.