Description
Node.js before 16.6.0, 14.17.4, and 12.22.4 is vulnerable to Remote Code Execution, XSS, Application crashes due to missing input validation of host names returned by Domain Name Servers in Node.js dns library which can lead to output of wrong hostnames (leading to Domain Hijacking) and injection vulnerabilities in applications using the library.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.22.5, 13.0 – < 13.*, 14.0 – < 14.17.5, 15.0 – < 15.*, 16.0 – < 16.6.2 | 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.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | nodejs +3 | 1:12.22.5-1.module+el8.4.0+12242+af52a4c7 | RHSA-2021:3666, RHSA-2021:3623 |
| RHEL 8 | nodejs-nodemon | 2.0.3-1.module+el8.3.0+6519+9f98ed83 | RHSA-2021:3666, RHSA-2021:3623 |
| RHEL 8 | nodejs-packaging | 17-3.module+el8.1.0+3369+37ae6a45 | RHSA-2021:3666, RHSA-2021:3623 |
| RHEL 8 | npm | 1:6.14.14-1.12.22.5.1.module+el8.4.0+12242+af52a4c7 | RHSA-2021:3666, RHSA-2021:3623 |
| RHEL 3 | rh-nodejs12-nodejs +2 | 12.22.5-1.el7 | RHSA-2021:3281 |
| RHEL 3 | rh-nodejs12-nodejs-nodemon +1 | 2.0.3-5.el7 | RHSA-2021:3281, RHSA-2021:3280 |
| RHEL 3 | rh-nodejs12-npm | 6.14.14-12.22.5.1.el7 | RHSA-2021:3281 |
| RHEL 3 | rh-nodejs14-nodejs +2 | 14.17.5-1.el7 | RHSA-2021:3280 |
| RHEL 3 | rh-nodejs14-npm | 6.14.14-14.17.5.1.el7 | RHSA-2021:3280 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8.2 EUS | nodejs +3 | 1:12.22.5-1.module+el8.2.0+12241+a3db445b | RHSA-2021:3638 |
| RHEL 8.2 EUS | nodejs-nodemon | 1.18.3-1.module+el8.1.0+3369+37ae6a45 | RHSA-2021:3638 |
| RHEL 8.2 EUS | nodejs-packaging | 17-3.module+el8.1.0+3369+37ae6a45 | RHSA-2021:3638 |
| RHEL 8.2 EUS | npm | 1:6.14.14-1.12.22.5.1.module+el8.2.0+12241+a3db445b | RHSA-2021:3638 |
| RHEL 8.1 EUS | nodejs +3 | 1:12.22.5-1.module+el8.1.0+12238+63fe3aec | RHSA-2021:3639 |
| RHEL 8.1 EUS | nodejs-nodemon | 1.18.3-1.module+el8.1.0+3369+37ae6a45 | RHSA-2021:3639 |
| RHEL 8.1 EUS | nodejs-packaging | 17-3.module+el8.1.0+3369+37ae6a45 | RHSA-2021:3639 |
| RHEL 8.1 EUS | npm | 1:6.14.14-1.12.22.5.1.module+el8.1.0+12238+63fe3aec | RHSA-2021:3639 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | nodejs +3 | 1:12.22.5-1.module_el8.4.0+2529+af52a4c7 | ALSA-2021:3623 |
| AlmaLinux 8 | nodejs-nodemon | 2.0.3-1.module_el8.4.0+2521+c668cc9f | ALSA-2021:3666, ALSA-2021:3623 |
| AlmaLinux 8 | nodejs-packaging | 17-3.module_el8.3.0+2023+d2377ea3 | ALSA-2021:3666, ALSA-2021:3623 |
| AlmaLinux 8 | npm | 1:6.14.14-1.12.22.5.1.module_el8.4.0+2529+af52a4c7 | ALSA-2021:3623 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | nodejs | 1:12.22.5-1.module+el8.4.0+647+e905fa21 | RLSA-2021:3666, RLSA-2021:3623 |
| Rocky Linux 8 | nodejs-nodemon | 2.0.3-1.module+el8.3.0+100+234774f7 | RLSA-2021:3666, RLSA-2021:3623 |
| Rocky Linux 8 | nodejs-packaging | 17-3.module+el8.3.0+101+f84c7154 | RLSA-2021:3666, RLSA-2021:3623 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP3 | nodejs12 | 12.22.5-4.19.1 | SUSE-SU-2021:2875-1 |
| SLES 15 SP3 | nodejs14 | 14.17.5-5.15.5 | SUSE-SU-2021:3211-1 |
| SLES 15 SP2 | nodejs10 | 10.24.1-1.39.2 | SUSE-SU-2021:2953-1 |
| SLES 15 SP2 | nodejs12 | 12.22.5-4.19.1 | SUSE-SU-2021:2875-1 |
| SLES 15 SP2 | nodejs14 | 14.17.5-5.15.5 | SUSE-SU-2021:3211-1 |
| SLES 12 | nodejs10 | 10.24.1-1.42.2 | SUSE-SU-2021:2823-1 |
| SLES 12 | nodejs12 | 12.22.5-1.35.1 | SUSE-SU-2021:2824-1 |
| SLES 12 | nodejs14 | 14.17.5-6.15.3 | SUSE-SU-2021:3184-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.3 | nodejs10 | 10.24.1-1.39.2 | openSUSE-SU-2021:2953-1 |
| openSUSE Leap 15.3 | nodejs12 | 12.22.5-4.19.1 | openSUSE-SU-2021:2875-1 |
| openSUSE Leap 15.3 | nodejs14 | 14.17.5-5.15.5 | openSUSE-SU-2021:3211-1 |
| openSUSE Leap 15.2 | nodejs10 | 10.24.1-lp152.2.18.1 | openSUSE-SU-2021:1239-1 |
| openSUSE Leap 15.2 | nodejs12 | 12.22.5-lp152.3.18.1 | openSUSE-SU-2021:1214-1 |
| openSUSE Leap 15.2 | nodejs14 | 14.17.5-lp152.14.1 | openSUSE-SU-2021:1313-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | nodejs | 14.17.5-r0 | — |
| Alpine v3.24 | nodejs-current | 16.6.2-r0 | — |
| Alpine v3.23 | nodejs | 14.17.5-r0 | — |
| Alpine v3.23 | nodejs-current | 16.6.2-r0 | — |
| Alpine v3.22 | nodejs | 14.17.5-r0 | — |
| Alpine v3.22 | nodejs-current | 16.6.2-r0 | — |
| Alpine v3.21 | nodejs | 14.17.5-r0 | — |
| Alpine v3.21 | nodejs-current | 16.6.2-r0 | — |
| Alpine v3.20 | nodejs | 14.17.5-r0 | — |
| Alpine v3.20 | nodejs-current | 16.6.2-r0 | — |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | nodejs | 14.17.5-r0 | — |
| Alpine v3.19 | nodejs-current | 16.6.2-r0 | — |
| Alpine v3.18 | nodejs | 14.17.5-r0 | — |
| Alpine v3.18 | nodejs-current | 16.6.2-r0 | — |
| Alpine v3.17 | nodejs | 14.17.5-r0 | — |
| Alpine v3.17 | nodejs-current | 16.6.2-r0 | — |
| Alpine v3.16 | nodejs | 14.17.5-r0 | — |
| Alpine v3.16 | nodejs-current | 16.6.2-r0 | — |
| Alpine v3.15 | nodejs | 14.17.5-r0 | — |
| Alpine v3.15 | nodejs-current | 16.6.2-r0 | — |
| Alpine v3.14 | nodejs | 14.17.5-r0 | — |
| Alpine v3.14 | nodejs-current | 16.11.1-r0 | — |
| Alpine v3.13 | nodejs | 14.17.5-r0 | — |
| Alpine v3.12 | nodejs | 12.22.5-r0 | — |
| Alpine v3.11 | nodejs | 12.22.5-r0 | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 2 (CBL-Mariner) | nodejs | 16.14.0-1 | — |
| Azure Linux 2 (CBL-Mariner) | python-gevent | 21.1.2-3 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | nodejs +3 | 1:12.22.5-1.module+el8.4.0+20308+065a70e3 | ELSA-2021-3666, ELSA-2021-3623 |
| Oracle Linux 8 | nodejs-nodemon | 2.0.3-1.module+el8.3.0+7818+6cd30d85 | ELSA-2021-3666, ELSA-2021-3623 |
| Oracle Linux 8 | nodejs-packaging | 17-3.module+el8.1.0+5393+aaf413e3 | ELSA-2021-3666, ELSA-2021-3623 |
| Oracle Linux 8 | npm | 1:6.14.14-1.12.22.5.1.module+el8.4.0+20308+065a70e3 | ELSA-2021-3666, ELSA-2021-3623 |
Advisories 30
- ALSA-2021:3666 Important: nodejs:14 security and bug fix update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2021:3623 Important: nodejs:12 security and bug fix update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2021:3639 Red Hat Security Advisory: nodejs:12 security and bug fix update Red Hat Security Advisories (RHSA) · Oct 14, 2026
- RHSA-2021:3666 Red Hat Security Advisory: nodejs:14 security and bug fix update Red Hat Security Advisories (RHSA) · Oct 14, 2026
- RHSA-2021:3623 Red Hat Security Advisory: nodejs:12 security and bug fix update Red Hat Security Advisories (RHSA) · Oct 14, 2026
- RHSA-2021:3638 Red Hat Security Advisory: nodejs:12 security and bug fix update Red Hat Security Advisories (RHSA) · Oct 14, 2026
- RHSA-2021:3281 Red Hat Security Advisory: rh-nodejs12-nodejs and rh-nodejs12-nodejs-nodemon security update Red Hat Security Advisories (RHSA) · Oct 14, 2026
- RHSA-2021:3280 Red Hat Security Advisory: rh-nodejs14-nodejs and rh-nodejs14-nodejs-nodemon security update Red Hat Security Advisories (RHSA) · Oct 14, 2026
- WID-SEC-2022-0029 Elasticsearch und Kibana: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 31, 2026
- RLSA-2021:3623 Important: nodejs:12 security and bug fix update Rocky Linux Security Advisories · Feb 5, 2026
- RLSA-2021:3666 Important: nodejs:14 security and bug fix update Rocky Linux Security Advisories · Feb 4, 2026
- SUSE-SU-2021:3184-1 Security update for nodejs14 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:2875-1 Security update for nodejs12 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:1313-1 Security update for nodejs14 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:3211-1 Security update for nodejs14 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:2875-1 Security update for nodejs12 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:2823-1 Security update for nodejs10 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:2824-1 Security update for nodejs12 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:1214-1 Security update for nodejs12 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:2953-1 Security update for nodejs10 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:2953-1 Security update for nodejs10 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:3211-1 Security update for nodejs14 SUSE / openSUSE Security Updates · Feb 4, 2026
- FSA-202302 Festo: Several vulnerabilities in FactoryViews CERT@VDE · Feb 2, 2026
- openSUSE-SU-2021:1239-1 Security update for nodejs10 SUSE / openSUSE Security Updates · May 7, 2025
- ICSA-22-069-09 Siemens SINEC INS CISA ICS & IT advisories · May 6, 2025
- WID-SEC-2022-1083 Node.js: Mehrere Schwachstellen BSI CERT-Bund (WID) · May 9, 2024
- WID-SEC-2023-0856 IBM QRadar SIEM: Mehrere Schwachstellen BSI CERT-Bund (WID) · Apr 4, 2023
- SSA-389290 SSA-389290: Third-Party Component Vulnerabilities in SINEC INS Siemens ProductCERT · Mar 8, 2022
- ELSA-2021-3666 Important: nodejs:14 security and bug fix update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Sep 27, 2021
- ELSA-2021-3623 Important: nodejs:12 security and bug fix update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Sep 22, 2021
References
- https://nodejs.org/en/blog/vulnerability/aug-2021-security-releases/
- https://hackerone.com/reports/1178337
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://security.netapp.com/advisory/ntap-20210923-0001/
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://security.netapp.com/advisory/ntap-20211022-0003/
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- https://www.oracle.com/security-alerts/cpujul2022.html
- GLSA-202401-02 vendor-advisory