Skip to content
OpenAdvisories
High · 8.1 CVE-2022-43548 EUVD-2022-46545GHSA-r934-m2c7-26gh

A OS Command Injection vulnerability exists in Node.js versions <14.21.1, <16.18.1, <18.12.1, <19.0.1 due to an insufficient IsAllowedHost …

Published Dec 5, 2022 · Updated Apr 30, 2025 · Assigned by hackerone

Description

A OS Command Injection vulnerability exists in Node.js versions <14.21.1, <16.18.1, <18.12.1, <19.0.1 due to an insufficient IsAllowedHost check that can easily be bypassed because IsIPAddress does not properly check if an IP address is invalid before making DBS requests allowing rebinding attacks.The fix for this issue in https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-32212 was incomplete and this new CVE is to complete the fix.

Affected products

VendorProductAffectedFixed
NodeJS Node 4.0 – < 4.*, 5.0 – < 5.*, 6.0 – < 6.*, 7.0 – < 7.*, 8.0 – < 8.*, 9.0 – < 9.*, 10.0 – < 10.*, 11.0 – < 11.*, 12.0 – < 12.*, 13.0 – < 13.*, 14.0 – < 14.21.1, 15.0 – < 15.*, 16.0 – < 16.18.1, 17.0 – < 17.*, 18.0 – < 18.12.1, 19.0 – < 19.0.1 4.*

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nodejs 18.12.1+dfsg-1 —
Debian 13 nodejs 18.12.1+dfsg-1 —
Debian 12 nodejs 18.12.1+dfsg-1 —
Debian 11 nodejs 12.22.12~dfsg-1~deb11u3 DSA-5326-1
Debian 10 nodejs 10.24.0~dfsg-1~deb10u3 DLA-3344-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS nodejs 12.22.9~dfsg-1ubuntu3.2 USN-6491-1
Ubuntu 20.04 LTS nodejs 10.19.0~dfsg-3ubuntu1.3 USN-6491-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS nodejs 8.10.0~dfsg-2ubuntu0.4+esm4 USN-6491-1
ReleasePackageFixed inAdvisory
RHEL 9 nodejs +3 1:16.18.1-3.el9_1 RHSA-2023:0321, RHSA-2022:8832
RHEL 9 nodejs-devel 1:18.12.1-1.module+el9.1.0.z+17326+318294bb RHSA-2022:8832
RHEL 9 nodejs-nodemon 2.0.20-1.module+el9.1.0.z+17326+318294bb RHSA-2023:0321, RHSA-2022:8832
RHEL 9 nodejs-packaging +1 2021.06-4.module+el9.1.0+15718+e52ec601 RHSA-2022:8832
RHEL 9 npm 1:8.19.2-1.16.18.1.3.el9_1 RHSA-2023:0321, RHSA-2022:8832
RHEL 8 nodejs +3 1:14.21.1-2.module+el8.7.0+17528+a329cd47 RHSA-2023:0050, RHSA-2022:9073, RHSA-2022:8833
RHEL 8 nodejs-nodemon 2.0.20-1.module+el8.7.0+17282+f47dd33b RHSA-2023:0050, RHSA-2022:9073, RHSA-2022:8833
RHEL 8 nodejs-packaging 23-3.module+el8.3.0+6519+9f98ed83 RHSA-2023:0050, RHSA-2022:9073, RHSA-2022:8833
RHEL 8 nodejs-packaging-bundler 2021.06-4.module+el8.7.0+15582+19c314fa RHSA-2022:8833
RHEL 8 npm 1:6.14.17-1.14.21.1.2.module+el8.7.0+17528+a329cd47 RHSA-2023:0050, RHSA-2022:9073, RHSA-2022:8833
RHEL 3 rh-nodejs14-nodejs +3 14.21.1-3.el7 RHSA-2023:0612
RHEL 3 rh-nodejs14-nodejs-nodemon 2.0.20-2.el7 RHSA-2023:0612
RHEL 3 rh-nodejs14-npm 6.14.17-14.21.1.3.el7 RHSA-2023:0612
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.6 EUS nodejs +3 1:14.21.3-1.module+el8.6.0+18532+cbe6f646 RHSA-2023:1742
RHEL 8.6 EUS nodejs-nodemon 2.0.20-3.module+el8.6.0+18532+cbe6f646 RHSA-2023:1742
RHEL 8.6 EUS nodejs-packaging 23-3.module+el8.3.0+6519+9f98ed83 RHSA-2023:1742
RHEL 8.6 EUS npm 1:6.14.18-1.14.21.3.1.module+el8.6.0+18532+cbe6f646 RHSA-2023:1742
RHEL 8.4 EUS nodejs +3 1:14.21.3-1.module+el8.4.0+18317+43f5ac16 RHSA-2023:1533
RHEL 8.4 EUS nodejs-nodemon 2.0.20-3.module+el8.4.0+18317+43f5ac16 RHSA-2023:1533
RHEL 8.4 EUS nodejs-packaging 23-3.module+el8.3.0+6519+9f98ed83 RHSA-2023:1533
RHEL 8.4 EUS npm 1:6.14.18-1.14.21.3.1.module+el8.4.0+18317+43f5ac16 RHSA-2023:1533

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 nodejs +3 1:16.18.1-3.el9_1 ALSA-2023:0321, ALSA-2022:8832
AlmaLinux 9 nodejs-devel 1:18.12.1-1.module_el9.1.0+16+91bc168f ALSA-2022:8832
AlmaLinux 9 nodejs-nodemon 2.0.20-1.module_el9.1.0+16+91bc168f ALSA-2023:0321, ALSA-2022:8832
AlmaLinux 9 nodejs-packaging +1 2021.06-4.module_el9.1.0+13+d9a595ea ALSA-2022:8832
AlmaLinux 9 npm 1:8.19.2-1.16.18.1.3.el9_1 ALSA-2023:0321, ALSA-2022:8832
AlmaLinux 8 nodejs +3 1:14.21.1-2.module_el8.7.0+3373+a4c18c43 ALSA-2023:0050, ALSA-2022:9073, ALSA-2022:8833
AlmaLinux 8 nodejs-nodemon 2.0.20-1.module_el8.7.0+3370+40ccb2a8 ALSA-2023:0050, ALSA-2022:9073, ALSA-2022:8833
AlmaLinux 8 nodejs-packaging 23-3.module_el8.4.0+2522+3bd42762 ALSA-2023:0050, ALSA-2022:9073, ALSA-2022:8833
AlmaLinux 8 nodejs-packaging-bundler 2021.06-4.module_el8.7.0+3343+ea2b7901 ALSA-2022:8833
AlmaLinux 8 npm 1:6.14.17-1.14.21.1.2.module_el8.7.0+3373+a4c18c43 ALSA-2023:0050, ALSA-2022:9073, ALSA-2022:8833

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 nodejs 1:16.18.1-3.el9_1 RLSA-2023:0321
Rocky Linux 9 nodejs-nodemon 2.0.20-2.el9_1 RLSA-2023:0321
Rocky Linux 9 nodejs-packaging 2021.06-4.module+el9.5.0+31770+0da7192d RLSA-2022:8832
Rocky Linux 8 nodejs 1:14.21.1-2.module+el8.7.0+1116+bd2a84b4 RLSA-2023:0050, RLSA-2022:9073, RLSA-2022:8833
Rocky Linux 8 nodejs-nodemon 2.0.20-1.module+el8.7.0+1104+549f92a6 RLSA-2023:0050, RLSA-2022:9073, RLSA-2022:8833
Rocky Linux 8 nodejs-packaging 23-3.module+el8.3.0+100+234774f7 RLSA-2023:0050, RLSA-2022:9073, RLSA-2022:8833
ReleasePackageFixed inAdvisory
SLES 15 SP4 nodejs16 16.18.1-150400.3.12.1 SUSE-SU-2022:4003-1
SLES 15 SP4 nodejs18 18.13.0-150400.9.3.1 SUSE-SU-2023:0419-1
SLES 15 SP3 nodejs12 12.22.12-150200.4.41.2 SUSE-SU-2022:4254-1
SLES 15 SP3 nodejs14 14.21.1-150200.15.40.2 SUSE-SU-2022:4255-1
SLES 15 SP3 nodejs16 16.18.1-150300.7.15.1 SUSE-SU-2022:4084-1
SLES 15 SP2 nodejs10 10.24.1-150000.1.53.1 SUSE-SU-2022:4301-1
SLES 15 SP2 nodejs12 12.22.12-150200.4.41.2 SUSE-SU-2022:4254-1
SLES 15 SP2 nodejs14 14.21.1-150200.15.40.2 SUSE-SU-2022:4255-1
SLES 15 SP1 nodejs10 10.24.1-150000.1.53.1 SUSE-SU-2022:4301-1
SLES 15 nodejs10 10.24.1-150000.1.53.1 SUSE-SU-2022:4301-1
Show 12 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 nodejs12 12.22.12-1.57.1 SUSE-SU-2022:3989-1
SLES 12 nodejs14 14.21.1-6.37.1 SUSE-SU-2022:3968-1
SLES 12 nodejs16 16.18.1-8.17.1 SUSE-SU-2022:3967-1
SLES 12 nodejs18 18.13.0-8.3.1 SUSE-SU-2023:0408-1
SLES for SAP 15 SP2 nodejs10 10.24.1-150000.1.53.1 SUSE-SU-2022:4301-1
SLES for SAP 15 SP2 nodejs12 12.22.12-150200.4.41.2 SUSE-SU-2022:4254-1
SLES for SAP 15 SP2 nodejs14 14.21.1-150200.15.40.2 SUSE-SU-2022:4255-1
SLES for SAP 15 SP1 nodejs10 10.24.1-150000.1.53.1 SUSE-SU-2022:4301-1
SLES for SAP 15 nodejs10 10.24.1-150000.1.53.1 SUSE-SU-2022:4301-1
SLE HPC 15 SP2 nodejs10 10.24.1-150000.1.53.1 SUSE-SU-2022:4301-1
SLE HPC 15 SP2 nodejs12 12.22.12-150200.4.41.2 SUSE-SU-2022:4254-1
SLE HPC 15 SP2 nodejs14 14.21.1-150200.15.40.2 SUSE-SU-2022:4255-1
SLE HPC 15 SP1 nodejs10 10.24.1-150000.1.53.1 SUSE-SU-2022:4301-1
SLE HPC 15 nodejs10 10.24.1-150000.1.53.1 SUSE-SU-2022:4301-1
SUSE Manager Server 4.1 nodejs10 10.24.1-150000.1.53.1 SUSE-SU-2022:4301-1
SUSE Manager Server 4.1 nodejs12 12.22.12-150200.4.41.2 SUSE-SU-2022:4254-1
SUSE Manager Server 4.1 nodejs14 14.21.1-150200.15.40.2 SUSE-SU-2022:4255-1
SUSE Manager Retail Branch Server 4.1 nodejs10 10.24.1-150000.1.53.1 SUSE-SU-2022:4301-1
SUSE Manager Retail Branch Server 4.1 nodejs12 12.22.12-150200.4.41.2 SUSE-SU-2022:4254-1
SUSE Manager Retail Branch Server 4.1 nodejs14 14.21.1-150200.15.40.2 SUSE-SU-2022:4255-1
SUSE Manager Proxy 4.1 nodejs10 10.24.1-150000.1.53.1 SUSE-SU-2022:4301-1
SUSE Manager Proxy 4.1 nodejs12 12.22.12-150200.4.41.2 SUSE-SU-2022:4254-1
SUSE Manager Proxy 4.1 nodejs14 14.21.1-150200.15.40.2 SUSE-SU-2022:4255-1
SUSE Enterprise Storage 7 nodejs10 10.24.1-150000.1.53.1 SUSE-SU-2022:4301-1
SUSE Enterprise Storage 7 nodejs12 12.22.12-150200.4.41.2 SUSE-SU-2022:4254-1
SUSE Enterprise Storage 7 nodejs14 14.21.1-150200.15.40.2 SUSE-SU-2022:4255-1
SUSE Enterprise Storage 6 nodejs10 10.24.1-150000.1.53.1 SUSE-SU-2022:4301-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed nodejs-electron 21.3.2-2.1 openSUSE-SU-2024:12554-1
openSUSE Tumbleweed nodejs18 18.12.1-1.1 openSUSE-SU-2024:12488-1
openSUSE Tumbleweed nodejs19 19.0.1-1.1 openSUSE-SU-2024:12489-1
openSUSE Leap 15.5 nodejs18 18.13.0-150400.9.3.1 SUSE-SU-2023:0419-1
openSUSE Leap 15.4 nodejs10 10.24.1-150000.1.53.1 SUSE-SU-2022:4301-1
openSUSE Leap 15.4 nodejs12 12.22.12-150200.4.41.2 SUSE-SU-2022:4254-1
openSUSE Leap 15.4 nodejs14 14.21.1-150200.15.40.2 SUSE-SU-2022:4255-1
openSUSE Leap 15.4 nodejs16 16.18.1-150400.3.12.1 SUSE-SU-2022:4003-1
openSUSE Leap 15.4 nodejs18 18.13.0-150400.9.3.1 SUSE-SU-2023:0419-1
openSUSE Leap 15.3 nodejs10 10.24.1-150000.1.53.1 SUSE-SU-2022:4301-1
openSUSE Leap 15.3 nodejs12 12.22.12-150200.4.41.2 SUSE-SU-2022:4254-1
openSUSE Leap 15.3 nodejs14 14.21.1-150200.15.40.2 SUSE-SU-2022:4255-1
openSUSE Leap 15.3 nodejs16 16.18.1-150300.7.15.1 SUSE-SU-2022:4084-1
ReleasePackageFixed inAdvisory
Alpine v3.24 nodejs 18.12.1-r0 —
Alpine v3.23 nodejs 18.12.1-r0 —
Alpine v3.22 nodejs 18.12.1-r0 —
Alpine v3.21 nodejs 18.12.1-r0 —
Alpine v3.20 nodejs 18.12.1-r0 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 nodejs 18.12.1-r0 —
Alpine v3.18 nodejs 18.12.1-r0 —
Alpine v3.17 nodejs 18.12.1-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 nodejs +4 1:18.12.1-1.amzn2023.0.2 ALAS2023-2023-084
Amazon Linux 2023 npm 1:8.19.2-1.18.12.1.1.amzn2023.0.2 ALAS2023-2023-084
Amazon Linux 2023 v8-devel 2:10.2.154.15-1.18.12.1.1.amzn2023.0.2 ALAS2023-2023-084

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) nodejs 16.18.1-2 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 graalvm22-ce-11 +41 22.3.1-1.el9 ELSA-2023-12077, ELSA-2023-12076, ELSA-2023-12075
Oracle Linux 9 nodejs +3 1:16.18.1-3.el9_1 ELSA-2023-0321, ELSA-2022-8832
Oracle Linux 9 nodejs-devel 1:18.12.1-1.module+el9.1.0+20891+3d7d56a4 ELSA-2022-8832
Oracle Linux 9 nodejs-nodemon 2.0.20-1.module+el9.1.0+20891+3d7d56a4 ELSA-2023-0321, ELSA-2022-8832
Oracle Linux 9 nodejs-packaging +1 2021.06-4.module+el9.1.0+20762+f52d7401 ELSA-2022-8832
Oracle Linux 9 npm 1:8.19.2-1.16.18.1.3.el9_1 ELSA-2023-0321, ELSA-2022-8832
Oracle Linux 8 graalvm22-ce-11 +41 22.3.1-1.el8 ELSA-2023-12073, ELSA-2023-12072, ELSA-2023-12071
Oracle Linux 8 nodejs +3 1:14.21.1-2.module+el8.7.0+20895+79a25710 ELSA-2023-0050, ELSA-2022-8833
Oracle Linux 8 nodejs-nodemon 2.0.20-1.module+el8.7.0+20890+579912a9 ELSA-2023-0050, ELSA-2022-8833
Oracle Linux 8 nodejs-packaging 23-3.module+el8.3.0+7818+6cd30d85 ELSA-2023-0050, ELSA-2022-8833
Oracle Linux 8 nodejs-packaging-bundler 2021.06-4.module+el8.7.0+20766+0a247725 ELSA-2022-8833
Oracle Linux 8 npm 1:6.14.17-1.14.21.1.2.module+el8.7.0+20895+79a25710 ELSA-2023-0050, ELSA-2022-8833
Oracle Linux 7 graalvm22-ce-11 +41 22.3.1-1.el7 ELSA-2023-12069, ELSA-2023-12068, ELSA-2023-12067

Advisories 50

References