CVE-2021-22931
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.
What to do
Likely to be exploited: EPSS gives a 22% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from AlmaLinux, Alpine, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
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 |
|---|---|---|---|---|
| Ubuntu 16.04 | nodejs | Fix pending | ||
| Red Hat Enterprise Linux 9 | nodejs | Not affected | ||
| Red Hat Enterprise Linux 9 | nodejs-docs | Not affected | ||
| Red Hat Enterprise Linux 9 | nodejs-full-i18n | Not affected | ||
| Red Hat Enterprise Linux 9 | nodejs-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | npm | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs | Fixed | 1:12.22.5-1.module+el8.4.0+12242+af52a4c7 | RHSA-2021:3666 |
| Red Hat Enterprise Linux 8 | nodejs-devel | Fixed | 1:12.22.5-1.module+el8.4.0+12242+af52a4c7 | RHSA-2021:3666 |
| Red Hat Enterprise Linux 8 | nodejs-docs | Fixed | 1:14.17.5-1.module+el8.4.0+12247+e2879e58 | RHSA-2021:3623 |
| Red Hat Enterprise Linux 8 | nodejs-full-i18n | Fixed | 1:14.17.5-1.module+el8.4.0+12247+e2879e58 | RHSA-2021:3623 |
| Red Hat Enterprise Linux 8 | nodejs-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-nodemon | Fixed | 0:2.0.3-1.module+el8.4.0+11732+c668cc9f | RHSA-2021:3666 |
| Red Hat Enterprise Linux 8 | nodejs-packaging | Fixed | 0:23-3.module+el8.3.0+6519+9f98ed83 | RHSA-2021:3623 |
| Red Hat Enterprise Linux 8 | nodejs-packaging-bundler | Not affected | ||
| Red Hat Enterprise Linux 8 | npm | Fixed | 1:6.14.14-1.14.17.5.1.module+el8.4.0+12247+e2879e58 | RHSA-2021:3623 |
| Red Hat Enterprise Linux 8 | v8-12.4-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | v8-13.6-devel | Not affected | ||
| AlmaLinux 8 | nodejs | Fixed | 1:12.22.5-1.module_el8.5.0+85+79a7b441 | ALSA-2021:3623 |
| AlmaLinux 8 | nodejs-devel | Fixed | 1:12.22.5-1.module_el8.4.0+2529+af52a4c7 | ALSA-2021:3623 |
| AlmaLinux 8 | nodejs-docs | Fixed | 1:12.22.5-1.module_el8.4.0+2529+af52a4c7 | ALSA-2021:3623 |
| AlmaLinux 8 | nodejs-full-i18n | Fixed | 1:12.22.5-1.module_el8.4.0+2529+af52a4c7 | ALSA-2021:3623 |
| AlmaLinux 8 | nodejs-nodemon | Fixed | 2.0.3-1.module_el8.4.0+2521+c668cc9f | ALSA-2021:3623 |
| AlmaLinux 8 | nodejs-packaging | Fixed | 23-3.module_el8.5.0+254+b4526b16 | ALSA-2021:3666 |
| AlmaLinux 8 | npm | Fixed | 1:6.14.14-1.12.22.5.1.module_el8.5.0+85+79a7b441 | ALSA-2021:3623 |
| Rocky Linux 8 | nodejs | Fixed | 1:14.17.5-1.module+el8.4.0+654+17ff1d38 | RLSA-2021:3623 |
| Rocky Linux 8 | nodejs-nodemon | Fixed | 0:2.0.3-1.module+el8.3.0+100+234774f7 | RLSA-2021:3623 |
| Rocky Linux 8 | nodejs-packaging | Fixed | 0:23-3.module+el8.3.0+100+234774f7 | RLSA-2021:3623 |
| Alpine Linux 3.24 | nodejs | Fixed | 14.17.5-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.24 | nodejs-current | Fixed | 16.6.2-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.23 | nodejs | Fixed | 14.17.5-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.23 | nodejs-current | Fixed | 16.6.2-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.22 | nodejs | Fixed | 14.17.5-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.22 | nodejs-current | Fixed | 16.6.2-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.21 | nodejs | Fixed | 14.17.5-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.21 | nodejs-current | Fixed | 16.6.2-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.20 | nodejs | Fixed | 14.17.5-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.20 | nodejs-current | Fixed | 16.6.2-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.19 | nodejs | Fixed | 14.17.5-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.19 | nodejs-current | Fixed | 16.6.2-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.18 | nodejs | Fixed | 14.17.5-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.18 | nodejs-current | Fixed | 16.6.2-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.17 | nodejs | Fixed | 14.17.5-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.17 | nodejs-current | Fixed | 16.6.2-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.16 | nodejs | Fixed | 14.17.5-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.16 | nodejs-current | Fixed | 16.6.2-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.15 | nodejs | Fixed | 14.17.5-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.15 | nodejs-current | Fixed | 16.6.2-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.14 | nodejs | Fixed | 14.17.5-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.14 | nodejs-current | Fixed | 16.11.1-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.13 | nodejs | Fixed | 14.17.5-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.12 | nodejs | Fixed | 12.22.5-r0 | ALPINE-CVE-2021-22931 |
| Alpine Linux 3.11 | nodejs | Fixed | 12.22.5-r0 | ALPINE-CVE-2021-22931 |
What the vendor says
As published in the CVE record by hackerone, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- NodeJS Node: affected: 4.0 to before 4.*, 5.0 to before 5.*, 6.0 to before 6.*, 7.0 to before 7.*, 8.0 to before 8.*, 9.0 to before 9.*; fixed in
12.22.5,14.17.5,16.6.2
Vendor advisories:
- https://security.gentoo.org/glsa/202401-02 (vendor-advisory)
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
- https://security.gentoo.org/glsa/202401-02
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.