CVE-2022-21824
Due to the formatting logic of the "console.table()" function it was not safe to allow user controlled input to be passed to the "properties" parameter while simultaneously passing a plain object with at least one property as the first parameter, which could be "__proto__". The prototype pollution has very limited control, in that it only allows an empty string to be assigned to numerical keys of the object prototype.Node.js >= 12.22.9, >= 14.18.3, >= 16.13.2, and >= 17.3.1 use a null protoype for the object these properties are being assigned to.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, 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 24.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | nodejs | Fix pending | ||
| Debian 14 | nodejs | Fixed | 12.22.9~dfsg-1 | DEBIAN-CVE-2022-21824 |
| Debian 13 | nodejs | Fixed | 12.22.9~dfsg-1 | DEBIAN-CVE-2022-21824 |
| Debian 12 | nodejs | Fixed | 12.22.9~dfsg-1 | DEBIAN-CVE-2022-21824 |
| 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:16.18.1-3.module+el8.7.0+17465+1a1abd74 | RHEA-2022:5139 |
| Red Hat Enterprise Linux 8 | nodejs-devel | Fixed | 1:16.18.1-3.module+el8.7.0+17465+1a1abd74 | RHSA-2022:7830 |
| Red Hat Enterprise Linux 8 | nodejs-docs | Fixed | 1:16.18.1-3.module+el8.7.0+17465+1a1abd74 | RHSA-2022:7830 |
| Red Hat Enterprise Linux 8 | nodejs-full-i18n | Fixed | 1:16.18.1-3.module+el8.7.0+17465+1a1abd74 | RHEA-2022:5139 |
| Red Hat Enterprise Linux 8 | nodejs-nodemon | Fixed | 0:2.0.3-1.module+el8.4.0+11732+c668cc9f | RHSA-2022:7830 |
| Red Hat Enterprise Linux 8 | nodejs-packaging | Fixed | 0:17-3.module+el8.1.0+3369+37ae6a45 | RHSA-2022:9073 |
| Red Hat Enterprise Linux 8 | npm | Fixed | 1:6.14.16-1.12.22.12.1.module+el8.6.0+15324+1f2c5d8d | RHSA-2022:9073 |
| AlmaLinux 8 | nodejs | Fixed | 1:14.20.1-2.module_el8.7.0+3342+b2df8497 | ALSA-2022:9073 |
| AlmaLinux 8 | nodejs-devel | Fixed | 1:14.20.1-2.module_el8.7.0+3342+b2df8497 | ALSA-2022:9073 |
| AlmaLinux 8 | nodejs-docs | Fixed | 1:14.20.1-2.module_el8.7.0+3342+b2df8497 | ALSA-2022:9073 |
| AlmaLinux 8 | nodejs-full-i18n | Fixed | 1:14.20.1-2.module_el8.7.0+3342+b2df8497 | ALSA-2022:9073 |
| AlmaLinux 8 | nodejs-nodemon | Fixed | 2.0.20-2.module_el8.7.0+3371+ed8c43db | ALSA-2022:7830 |
| AlmaLinux 8 | nodejs-packaging | Fixed | 25-1.module_el8.5.0+2605+45d748af | ALSA-2022:7830 |
| AlmaLinux 8 | npm | Fixed | 1:6.14.17-1.14.20.1.2.module_el8.7.0+3342+b2df8497 | ALSA-2022:9073 |
| Rocky Linux 8 | nodejs | Fixed | 1:16.18.1-3.module+el8.7.0+1108+49363b0d | RLSA-2022:7830 |
| Rocky Linux 8 | nodejs-nodemon | Fixed | 0:2.0.19-2.module+el8.6.0+1003+ae94235a | RLSA-2022:7830 |
| Rocky Linux 8 | nodejs-packaging | Fixed | 0:25-1.module+el8.5.0+702+221f14e6 | RLSA-2022:9073 |
| Alpine Linux 3.24 | nodejs | Fixed | 16.13.2-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.24 | nodejs-current | Fixed | 17.3.1-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.24 | openjdk11 | Fixed | 11.0.15_p10-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.23 | nodejs | Fixed | 16.13.2-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.23 | nodejs-current | Fixed | 17.3.1-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.23 | openjdk11 | Fixed | 11.0.15_p10-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.22 | nodejs | Fixed | 16.13.2-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.22 | nodejs-current | Fixed | 17.3.1-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.22 | openjdk11 | Fixed | 11.0.15_p10-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.21 | nodejs | Fixed | 16.13.2-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.21 | nodejs-current | Fixed | 17.3.1-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.21 | openjdk11 | Fixed | 11.0.15_p10-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.20 | nodejs | Fixed | 16.13.2-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.20 | nodejs-current | Fixed | 17.3.1-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.20 | openjdk11 | Fixed | 11.0.15_p10-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.19 | nodejs | Fixed | 16.13.2-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.19 | nodejs-current | Fixed | 17.3.1-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.19 | openjdk11 | Fixed | 11.0.15_p10-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.18 | nodejs | Fixed | 16.13.2-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.18 | nodejs-current | Fixed | 17.3.1-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.18 | openjdk11 | Fixed | 11.0.15_p10-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.17 | nodejs | Fixed | 16.13.2-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.17 | nodejs-current | Fixed | 17.3.1-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.17 | openjdk11 | Fixed | 11.0.15_p10-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.16 | nodejs | Fixed | 16.13.2-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.16 | nodejs-current | Fixed | 17.3.1-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.16 | openjdk11 | Fixed | 11.0.15_p10-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.15 | nodejs | Fixed | 16.13.2-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.15 | nodejs-current | Fixed | 17.3.1-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.15 | openjdk11 | Fixed | 11.0.15_p10-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.14 | nodejs | Fixed | 14.19.0-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.13 | nodejs | Fixed | 14.19.0-r0 | ALPINE-CVE-2022-21824 |
| Alpine Linux 3.12 | nodejs | Fixed | 12.22.10-r0 | ALPINE-CVE-2022-21824 |
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.9,14.18.3,16.13.2,17.3.1
Vendor advisories:
- https://www.debian.org/security/2022/dsa-5170 (vendor-advisory)
References
- https://nodejs.org/en/blog/vulnerability/jan-2022-security-releases/
- https://hackerone.com/reports/1431042
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://security.netapp.com/advisory/ntap-20220325-0007/
- https://www.debian.org/security/2022/dsa-5170
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://security.netapp.com/advisory/ntap-20220729-0004/
- https://lists.debian.org/debian-lts-announce/2022/10/msg00006.html
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.