CVE-2023-23936CRLF Injection in Nodejs ‘undici’ via host
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, npm: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Debian 14 | node-undici | Fixed | 5.19.1+dfsg1+~cs20.10.9.5-1 | DEBIAN-CVE-2023-23936 |
| Debian 13 | node-undici | Fixed | 5.19.1+dfsg1+~cs20.10.9.5-1 | DEBIAN-CVE-2023-23936 |
| Debian 12 | node-undici | Fixed | 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u1 | DEBIAN-CVE-2023-23936 |
| Red Hat Enterprise Linux 9 | nodejs | Fixed | 1:16.19.1-1.el9_2 | RHSA-2023:2654 |
| Red Hat Enterprise Linux 9 | nodejs-devel | Fixed | 1:18.14.2-2.module+el9.2.0.z+18497+a402347c | RHSA-2023:2654 |
| Red Hat Enterprise Linux 9 | nodejs-docs | Fixed | 1:16.19.1-1.el9_2 | RHSA-2023:2654 |
| Red Hat Enterprise Linux 9 | nodejs-full-i18n | Fixed | 1:18.14.2-2.module+el9.2.0.z+18497+a402347c | RHSA-2023:2655 |
| Red Hat Enterprise Linux 9 | nodejs-libs | Fixed | 1:16.19.1-1.el9_2 | RHSA-2023:2655 |
| Red Hat Enterprise Linux 9 | nodejs-nodemon | Fixed | 0:2.0.20-3.el9_2 | RHSA-2023:2654 |
| Red Hat Enterprise Linux 9 | nodejs-packaging | Fixed | 0:2021.06-4.module+el9.1.0+15718+e52ec601 | RHSA-2023:2654 |
| Red Hat Enterprise Linux 9 | nodejs-packaging-bundler | Fixed | 0:2021.06-4.module+el9.1.0+15718+e52ec601 | RHSA-2023:2654 |
| Red Hat Enterprise Linux 9 | npm | Fixed | 1:9.5.0-1.18.14.2.2.module+el9.2.0.z+18497+a402347c | RHSA-2023:2655 |
| Red Hat Enterprise Linux 8 | nodejs | Fixed | 1:16.19.1-1.module+el8.7.0+18373+704f5cef | RHSA-2023:1583 |
| Red Hat Enterprise Linux 8 | nodejs-devel | Fixed | 1:16.19.1-1.module+el8.7.0+18373+704f5cef | RHSA-2023:1583 |
| Red Hat Enterprise Linux 8 | nodejs-docs | Fixed | 1:18.14.2-2.module+el8.7.0+18445+9493b6ea | RHSA-2023:1582 |
| Red Hat Enterprise Linux 8 | nodejs-full-i18n | Fixed | 1:18.14.2-2.module+el8.7.0+18445+9493b6ea | RHSA-2023:1582 |
| Red Hat Enterprise Linux 8 | nodejs-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-nodemon | Fixed | 0:2.0.20-3.module+el8.7.0+18373+704f5cef | RHSA-2023:1583 |
| Red Hat Enterprise Linux 8 | nodejs-packaging | Fixed | 0:2021.06-4.module+el8.7.0+15582+19c314fa | RHSA-2023:1582 |
| Red Hat Enterprise Linux 8 | nodejs-packaging-bundler | Fixed | 0:2021.06-4.module+el8.7.0+15582+19c314fa | RHSA-2023:1583 |
| Red Hat Enterprise Linux 8 | npm | Fixed | 1:9.5.0-1.18.14.2.2.module+el8.7.0+18445+9493b6ea | RHSA-2023:1582 |
| Red Hat Enterprise Linux 8 | v8-12.4-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | v8-13.6-devel | Not affected | ||
| AlmaLinux 9 | nodejs | Fixed | 1:18.14.2-2.module_el9.2.0+29+de583a0b | ALSA-2023:2655 |
| AlmaLinux 9 | nodejs-devel | Fixed | 1:18.14.2-2.module_el9.2.0+29+de583a0b | ALSA-2023:2654 |
| AlmaLinux 9 | nodejs-docs | Fixed | 1:16.19.1-1.el9_2 | ALSA-2023:2654 |
| AlmaLinux 9 | nodejs-full-i18n | Fixed | 1:16.19.1-1.el9_2 | ALSA-2023:2654 |
| AlmaLinux 9 | nodejs-libs | Fixed | 1:16.19.1-1.el9_2 | ALSA-2023:2655 |
| AlmaLinux 9 | nodejs-nodemon | Fixed | 2.0.20-2.module_el9.2.0+29+de583a0b | ALSA-2023:2654 |
| AlmaLinux 9 | nodejs-packaging | Fixed | 2021.06-4.module_el9.1.0+13+d9a595ea | ALSA-2023:2654 |
| AlmaLinux 9 | nodejs-packaging-bundler | Fixed | 2021.06-4.module_el9.1.0+13+d9a595ea | ALSA-2023:2654 |
| AlmaLinux 9 | npm | Fixed | 1:8.19.3-1.16.19.1.1.el9_2 | ALSA-2023:2654 |
| AlmaLinux 8 | nodejs | Fixed | 1:16.19.1-1.module_el8.7.0+3496+a59a3324 | ALSA-2023:1583 |
| AlmaLinux 8 | nodejs-devel | Fixed | 1:18.14.2-2.module_el8.7.0+3497+c65299e7 | ALSA-2023:1582 |
| AlmaLinux 8 | nodejs-docs | Fixed | 1:16.19.1-1.module_el8.7.0+3496+a59a3324 | ALSA-2023:1583 |
| AlmaLinux 8 | nodejs-full-i18n | Fixed | 1:18.14.2-2.module_el8.7.0+3497+c65299e7 | ALSA-2023:1582 |
| AlmaLinux 8 | nodejs-nodemon | Fixed | 2.0.20-3.module_el8.7.0+3496+a59a3324 | ALSA-2023:1583 |
| AlmaLinux 8 | nodejs-packaging | Fixed | 2021.06-4.module_el8.7.0+3343+ea2b7901 | ALSA-2023:1582 |
| AlmaLinux 8 | nodejs-packaging-bundler | Fixed | 2021.06-4.module_el8.7.0+3343+ea2b7901 | ALSA-2023:1583 |
| AlmaLinux 8 | npm | Fixed | 1:9.5.0-1.18.14.2.2.module_el8.7.0+3497+c65299e7 | ALSA-2023:1582 |
| Rocky Linux 9 | nodejs | Fixed | 1:16.19.1-1.el9_2 | RLSA-2023:2655 |
| Rocky Linux 9 | nodejs-nodemon | Fixed | 0:2.0.20-3.el9_2 | RLSA-2023:2655 |
| Rocky Linux 9 | nodejs-packaging | Fixed | 0:2021.06-4.module+el9.7.0+40022+9ecc286c | RLSA-2023:2654 |
| Rocky Linux 8 | nodejs | Fixed | 1:18.14.2-2.module+el8.7.0+1177+510ae886 | RLSA-2023:1582 |
| Rocky Linux 8 | nodejs-nodemon | Fixed | 0:2.0.20-3.module+el8.7.0+1178+d52dba78 | RLSA-2023:1583 |
| Rocky Linux 8 | nodejs-packaging | Fixed | 0:2021.06-4.module+el8.7.0+1072+5b168780 | RLSA-2023:1582 |
| Alpine Linux 3.24 | nodejs | Fixed | 18.14.1-r0 | ALPINE-CVE-2023-23936 |
| Alpine Linux 3.23 | nodejs | Fixed | 18.14.1-r0 | ALPINE-CVE-2023-23936 |
| Alpine Linux 3.22 | nodejs | Fixed | 18.14.1-r0 | ALPINE-CVE-2023-23936 |
| Alpine Linux 3.21 | nodejs | Fixed | 18.14.1-r0 | ALPINE-CVE-2023-23936 |
| Alpine Linux 3.20 | nodejs | Fixed | 18.14.1-r0 | ALPINE-CVE-2023-23936 |
| Alpine Linux 3.19 | nodejs | Fixed | 18.14.1-r0 | ALPINE-CVE-2023-23936 |
| Alpine Linux 3.18 | nodejs | Fixed | 18.14.1-r0 | ALPINE-CVE-2023-23936 |
| Alpine Linux 3.17 | nodejs | Fixed | 18.14.1-r0 | ALPINE-CVE-2023-23936 |
| Alpine Linux 3.16 | nodejs | Fixed | 16.19.1-r0 | ALPINE-CVE-2023-23936 |
| Alpine Linux 3.15 | nodejs | Fixed | 16.19.1-r0 | ALPINE-CVE-2023-23936 |
| npm library | undici | Fixed | 5.19.1 | GHSA-5r9g-qh6m-jxff |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- nodejs undici: affected: >=2.0.0, < 5.19.1
References
- https://github.com/nodejs/undici/security/advisories/GHSA-5r9g-qh6m-jxff
- https://github.com/nodejs/undici/commit/a2eff05401358f6595138df963837c24348f2034
- https://hackerone.com/reports/1820955
- https://github.com/nodejs/undici/releases/tag/v5.19.1
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.