CVE-2023-23936
Node.js: Fetch API did not protect against CRLF injection in host headers
Overview
Description
Undici is an HTTP/1.1 client for Node.js. Starting with version 2.0.0 and prior to version 5.19.1, the undici library does not protect host HTTP header from CRLF injection vulnerabilities. This issue is patched in Undici v5.19.1. As a workaround, sanitize the headers.host string before passing to undici.
Source: OX vulnerability database
Severity
5.4 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Weakness: CWE-93, CWE-74
Affected packages · 5
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | node | >=16.0.0, <16.19.1>=18.0.0, <18.14.1>=19.0.0, <19.6.1 | 16.19.118.14.119.6.1 |
| Bitnami | node-min | >=16.0.0, <16.19.1>=18.0.0, <18.14.1>=19.0.0, <19.6.1 | 16.19.118.14.119.6.1 |
| npm | undici | >=2.0.0, <5.19.1 | 5.19.1 |
| Seal npm | @seal-security/undici | >=4.16.0-sp1, <4.16.0-sp999 | 4.16.0-sp999 |
| Seal npm | undici | >=4.16.0-sp0, <4.16.0-sp999 | 4.16.0-sp999 |
Open a package to see all its vulnerabilities.
Operating systems · 67 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
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | nodejs +1 | 18.20.8-1.ph4 |
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 |
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-23936
- 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 34 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/a2eff05401358f6595138df963837c24348f2034
- github.com https://github.com/nodejs/undici/releases/tag/v5.19.1
- github.com https://github.com/nodejs/undici/security/advisories/GHSA-5r9g-qh6m-jxff
- hackerone.com https://hackerone.com/reports/1820955
- linux.oracle.com https://linux.oracle.com/cve/CVE-2023-23936.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2023-2655.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-23936
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-23936
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.