cve.bz

CVE-2023-23936 nodejs: Injection

5.4 mediumExploit referenceEPSS 1.1%Fix available

Medium (5.4) in nodejs. EPSS 1.1% estimated probability of exploitation activity in the next 30 days. Fixed in undici 5.19.1.

On this page
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.

Severity

CVSS 3.1

5.4 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 67th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2025-03-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection)
CWE-93 Improper Neutralization of CRLF Sequences (CRLF Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-23936 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-23936?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-23936?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-23936 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
nodejs:node.jsfrom 16.0.0 before 16.19.1
nodejs:node.jsfrom 18.0.0 before 18.14.1
nodejs:node.jsfrom 19.0.0 before 19.6.1
nodejs:undicifrom 2.0.0 before 5.19.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5r9g-qh6m-jxffnpmundici>=2.0.0 <5.19.15.19.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12node-undici5.15.0+dfsg1+~cs20.10.9.3-1+deb12u1DEBIAN-CVE-2023-23936
Debian13, 14node-undici5.19.1+dfsg1+~cs20.10.9.5-1DEBIAN-CVE-2023-23936
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:16.19.1-1.module+el8.7.0+18373+704f5cefRHSA-2023:1582
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:18.14.2-2.module+el8.7.0+18445+9493b6eaRHSA-2023:1583
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.20-2.module+el8.7.0+18445+9493b6eaRHSA-2023:1583
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.20-3.module+el8.7.0+18373+704f5cefRHSA-2023:1582
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:25-1.module+el8.5.0+10992+fac5fe06RHSA-2023:1582
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-4.module+el8.7.0+15582+19c314faRHSA-2023:1583
Red Hatenterprise_linux:8::appstreamnpm1:8.19.3-1.16.19.1.1.module+el8.7.0+18373+704f5cefRHSA-2023:1582
Red Hatenterprise_linux:8::appstreamnpm1:9.5.0-1.18.14.2.2.module+el8.7.0+18445+9493b6eaRHSA-2023:1583
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:18.14.2-2.module+el9.2.0.z+18497+a402347cRHSA-2023:2654
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-libs and 4 more1:16.19.1-1.el9_2RHSA-2023:2655
Red Hatenterprise_linux:9::appstreamnodejs-nodemon0:2.0.20-2.module+el9.2.0.z+18497+a402347cRHSA-2023:2654
Red Hatenterprise_linux:9::appstreamnodejs-nodemon0:2.0.20-3.el9_2RHSA-2023:2655
5 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 3 morenodejs1616.19.1-150300.7.18.1SUSE-SU-2023:0673-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1616.19.1-8.24.1SUSE-SU-2023:0609-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1818.14.2-8.6.2SUSE-SU-2023:0715-1
SUSELinux Enterprise Module for Web and Scripting 15 SP4nodejs1616.19.1-150400.3.15.1SUSE-SU-2023:0608-1
SUSELinux Enterprise Module for Web and Scripting 15 SP4nodejs1818.14.2-150400.9.6.2SUSE-SU-2023:0738-1
openSUSELeap 15.4nodejs1616.19.1-150400.3.15.1SUSE-SU-2023:0608-1
openSUSELeap 15.4nodejs1818.14.2-150400.9.6.2SUSE-SU-2023:0738-1
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:16.19.1-1.module_el8.7.0+3496+a59a3324ALSA-2023:1582
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:18.14.2-2.module_el8.7.0+3497+c65299e7ALSA-2023:1583
AlmaLinux8nodejs-nodemon2.0.20-2.module_el8.7.0+3497+c65299e7ALSA-2023:1583
AlmaLinux8nodejs-nodemon2.0.20-3.module_el8.7.0+3496+a59a3324ALSA-2023:1582
AlmaLinux8nodejs-packaging25-1.module_el8.5.0+2605+45d748afALSA-2023:1582
AlmaLinux8nodejs-packaging, nodejs-packaging-bundler2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2023:1583
AlmaLinux8npm1:8.19.3-1.16.19.1.1.module_el8.7.0+3496+a59a3324ALSA-2023:1582
AlmaLinux8npm1:9.5.0-1.18.14.2.2.module_el8.7.0+3497+c65299e7ALSA-2023:1583
AlmaLinux9nodejs, nodejs-docs, nodejs-devel and 1 more1:18.14.2-2.module_el9.2.0+29+de583a0bALSA-2023:2654
AlmaLinux9nodejs, nodejs-docs, nodejs-libs and 1 more1:16.19.1-1.el9_2ALSA-2023:2655
AlmaLinux9nodejs-nodemon2.0.20-2.module_el9.2.0+29+de583a0bALSA-2023:2654
AlmaLinux9nodejs-packaging, nodejs-packaging-bundler2021.06-4.module_el9.1.0+13+d9a595eaALSA-2023:2654
2 more for AlmaLinux in the JSON.
Rocky Linux8nodejs1:16.19.1-1.module+el8.7.0+1178+d52dba78RLSA-2023:1582
Rocky Linux8nodejs1:18.14.2-2.module+el8.7.0+1177+510ae886RLSA-2023:1583
Rocky Linux8nodejs-nodemon0:2.0.20-2.module+el8.7.0+1108+49363b0dRLSA-2023:1583
Rocky Linux8nodejs-nodemon0:2.0.20-3.module+el8.7.0+1178+d52dba78RLSA-2023:1582
Rocky Linux8nodejs-packaging0:2021.06-4.module+el8.7.0+1072+5b168780RLSA-2023:1583
Rocky Linux8nodejs-packaging0:25-1.module+el8.6.0+1046+80feca58RLSA-2023:1582
Rocky Linux9nodejs1:16.19.1-1.el9_2RLSA-2023:2655
Rocky Linux9nodejs-nodemon0:2.0.20-3.el9_2RLSA-2023:2655
Rocky Linux9nodejs-packaging0:2021.06-4.module+el9.7.0+40017+f0db1785RLSA-2023:2654
Rocky Linux9nodejs-packaging0:2021.06-4.module+el9.7.0+40018+a011993dRLSA-2023:2654
Rocky Linux9nodejs-packaging0:2021.06-4.module+el9.7.0+40022+9ecc286cRLSA-2023:2654
Rocky Linux9nodejs-packaging0:2021.06-4.module+el9.7.0+40025+0e0cf6b2RLSA-2023:2654
Alpinev3.15, v3.16nodejs16.19.1-r0ALPINE-CVE-2023-23936
Alpinev3.17, v3.18, v3.19 and 5 morenodejs18.14.1-r0ALPINE-CVE-2023-23936
Azure Linux2nodejs16.19.1-1AZL-13604

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8nodejs:16-8070020230314140722.bd1311edFixed 2023-04-04RHSA-2023:1582
Red Hat Enterprise Linux 8nodejs:18-8070020230322080930.bd1311edFixed 2023-04-04RHSA-2023:1583
Red Hat Enterprise Linux 9nodejs:18-9020020230327152102.rhel9Fixed 2023-05-09RHSA-2023:2654
Red Hat Enterprise Linux 9nodejs-1:16.19.1-1.el9_2Fixed 2023-05-09RHSA-2023:2655
Red Hat Enterprise Linux 9.0 Extended Update Supportnodejs-1:16.20.2-1.el9_0Fixed 2023-10-09RHSA-2023:5533
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel7Will not fix
Red Hat Enterprise Linux 8nodejsNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-23936.

Attack patterns (CAPEC)

  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-74 (37).

References

Check your stackJSON