Vulnerability · Published Nov 15, 2021 · Assigned by hackerone

CVE-2021-22959

Medium 6.5

In plain English

A medium-severity security flaw in Node from NodeJS. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.2% (higher than 88% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)6.5Medium
Exploit odds (30 days)3.2%top 12.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

The parser in accepts requests with a space (SP) right after the header name before the colon. This can lead to HTTP Request Smuggling (HRS) in llhttp < v2.1.4 and < v6.0.6.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8nodejs1:16.13.1-3.module_el8.5.0+2605+45d748afALSA-2021:5171
AlmaLinux:8nodejs1:16.13.1-3.module_el8.5.0+246+05401605ALSA-2021:5171
AlmaLinux:8nodejs1:14.18.2-2.module_el8.5.0+2618+8d46dafdALSA-2022:0350
AlmaLinux:8nodejs1:14.18.2-2.module_el8.5.0+254+b4526b16ALSA-2022:0350
AlmaLinux:8nodejs-devel1:16.13.1-3.module_el8.5.0+2605+45d748afALSA-2021:5171
AlmaLinux:8nodejs-devel1:16.13.1-3.module_el8.5.0+246+05401605ALSA-2021:5171
AlmaLinux:8nodejs-devel1:14.18.2-2.module_el8.5.0+254+b4526b16ALSA-2022:0350
AlmaLinux:8nodejs-devel1:14.18.2-2.module_el8.5.0+2618+8d46dafdALSA-2022:0350
AlmaLinux:8nodejs-docs1:16.13.1-3.module_el8.5.0+246+05401605ALSA-2021:5171
AlmaLinux:8nodejs-docs1:16.13.1-3.module_el8.5.0+2605+45d748afALSA-2021:5171
AlmaLinux:8nodejs-docs1:14.18.2-2.module_el8.5.0+254+b4526b16ALSA-2022:0350
AlmaLinux:8nodejs-docs1:14.18.2-2.module_el8.5.0+2618+8d46dafdALSA-2022:0350
AlmaLinux:8nodejs-full-i18n1:14.18.2-2.module_el8.5.0+2618+8d46dafdALSA-2022:0350
AlmaLinux:8nodejs-full-i18n1:16.13.1-3.module_el8.5.0+2605+45d748afALSA-2021:5171
AlmaLinux:8nodejs-full-i18n1:16.13.1-3.module_el8.5.0+246+05401605ALSA-2021:5171
AlmaLinux:8nodejs-full-i18n1:14.18.2-2.module_el8.5.0+254+b4526b16ALSA-2022:0350
AlmaLinux:8nodejs-nodemon2.0.15-1.module_el8.5.0+2605+45d748afALSA-2021:5171
AlmaLinux:8nodejs-nodemon2.0.15-1.module_el8.6.0+2904+f21ad6f4ALSA-2021:5171
AlmaLinux:8nodejs-nodemon2.0.15-1.module_el8.5.0+2605+45d748afALSA-2022:0350
AlmaLinux:8nodejs-nodemon2.0.15-1.module_el8.6.0+2904+f21ad6f4ALSA-2022:0350
AlmaLinux:8nodejs-nodemon2.0.15-1.module_el8.5.0+2618+8d46dafdALSA-2022:0350
AlmaLinux:8nodejs-packaging23-3.module_el8.4.0+2522+3bd42762ALSA-2022:0350
AlmaLinux:8nodejs-packaging25-1.module_el8.5.0+246+05401605ALSA-2021:5171
AlmaLinux:8nodejs-packaging25-1.module_el8.5.0+2605+45d748afALSA-2021:5171
AlmaLinux:8nodejs-packaging23-3.module_el8.5.0+2618+8d46dafdALSA-2022:0350
AlmaLinux:8npm1:8.1.2-1.16.13.1.3.module_el8.5.0+246+05401605ALSA-2021:5171
AlmaLinux:8npm1:8.1.2-1.16.13.1.3.module_el8.5.0+2605+45d748afALSA-2021:5171
AlmaLinux:8npm1:6.14.15-1.14.18.2.2.module_el8.5.0+2618+8d46dafdALSA-2022:0350
AlmaLinux:8npm1:6.14.15-1.14.18.2.2.module_el8.5.0+254+b4526b16ALSA-2022:0350
Alpine:v3.20nodejs14.18.1-r0ALPINE-CVE-2021-22959
Alpine:v3.21nodejs14.18.1-r0ALPINE-CVE-2021-22959
Alpine:v3.22nodejs14.18.1-r0ALPINE-CVE-2021-22959
Alpine:v3.23nodejs14.18.1-r0ALPINE-CVE-2021-22959
Alpine:v3.24nodejs14.18.1-r0ALPINE-CVE-2021-22959
Alpine:v3.20nodejs-current16.11.1-r0ALPINE-CVE-2021-22959
Alpine:v3.21nodejs-current16.11.1-r0ALPINE-CVE-2021-22959
Alpine:v3.22nodejs-current16.11.1-r0ALPINE-CVE-2021-22959
Alpine:v3.23nodejs-current16.11.1-r0ALPINE-CVE-2021-22959
Alpine:v3.24nodejs-current16.11.1-r0ALPINE-CVE-2021-22959
Debian:12nodejs12.22.7~dfsg-1DEBIAN-CVE-2021-22959
Debian:13nodejs12.22.7~dfsg-1DEBIAN-CVE-2021-22959
Debian:14nodejs12.22.7~dfsg-1DEBIAN-CVE-2021-22959
Rocky Linux:8nodejs1:16.13.1-3.module+el8.5.0+721+4c107270RLSA-2021:5171
Rocky Linux:8nodejs1:14.18.2-2.module+el8.5.0+733+de4fee6cRLSA-2022:0350
Rocky Linux:8nodejs-nodemon0:2.0.15-1.module+el8.5.0+721+4c107270RLSA-2021:5171
Rocky Linux:8nodejs-nodemon0:2.0.15-1.module+el8.5.0+721+4c107270RLSA-2022:0350
Rocky Linux:8nodejs-packaging0:23-3.module+el8.3.0+100+234774f7RLSA-2022:0350
Rocky Linux:8nodejs-packaging0:23-3.module+el8.7.0+1071+4bdda2a8RLSA-2022:0350
Rocky Linux:8nodejs-packaging0:25-1.module+el8.5.0+702+221f14e6RLSA-2021:5171
Rocky Linux:8nodejs-packaging0:25-1.module+el8.6.0+1046+80feca58RLSA-2021:5171
Rocky Linux:8nodejs-packaging0:23-3.module+el8.5.0+733+de4fee6cRLSA-2022:0350
Ubuntu:22.04:LTSnodejs12.22.9~dfsg-1ubuntu3UBUNTU-CVE-2021-22959

Affected products (as reported)

VendorProductVersions
NodeJS Node 4.0 – before 4.*5.0 – before 5.*6.0 – before 6.*7.0 – before 7.*8.0 – before 8.*9.0 – before 9.*10.0 – before 10.*11.0 – before 11.*

Weakness: CWE-444

References