CVE-2022-21824
Reported by hackerone · Published February 24, 2022
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| openjdk11 | Alpine | 11.0.15_p10-r0 |
| v8-devel | Amazon Linux | 2:10.2.154.15-1.18.12.1.1.amzn2023.0.2 |
| node | Bitnami | 17.3.1, 16.13.2, 14.18.3, 12.22.9 |
| nodejs | Amazon Linux | 1:18.12.1-1.amzn2023.0.2 |
| nodejs-full-i18n | Amazon Linux | 1:18.12.1-1.amzn2023.0.2 |
| nodejs-current | Alpine | 17.3.1-r0 |
| nodejs-devel | Amazon Linux | 1:18.12.1-1.amzn2023.0.2 |
| node-min | Bitnami | 17.3.1, 16.13.2, 14.18.3, 12.22.9 |
| npm | Amazon Linux | 1:8.19.2-1.18.12.1.1.amzn2023.0.2 |
| node | dhi.docker.com | 17.3.1, 16.13.2, 14.18.3, 12.22.9 |
| nodejs-libs | Amazon Linux | 1:18.12.1-1.amzn2023.0.2 |
| nodejs | Alpine | 16.13.2-r0, 14.19.0-r0, 12.22.10-r0 |
15 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| NodeJS | Node | 4.0, 5.0, 6.0 |
| alpine | openjdk11 | 0 |
| amazon:2023 | v8-devel | 0 |
| NodeJS | Node | 16.0, 15.0, 14.0 |
| amazon:2023 | nodejs | 0 |
| NodeJS | Node.js | |
| amazon:2023 | nodejs-full-i18n | 0 |
| alpine | nodejs-current | 0 |
| amazon:2023 | nodejs-devel | 0 |
| Maven | mysql-connector-java | 0 |
| amazon:2023 | npm | 0 |
| amazon:2023 | nodejs-libs | 0 |
| alpine | nodejs | 0, 0, 0 |
| PyPI | mysql-connector-python | 0 |
| amazon:2023 | nodejs-docs | 0 |
Timeline
- Jan 11, 2022 PoC Published
- Feb 24, 2022 CVE Published
- Feb 25, 2022 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory (62 in total, the first dated here)
- Jul 7, 2026 Coalition ESS Score
- Nov 2, 2026 Distribution Patch (57 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-21824
vulnetix vdb fixes CVE-2022-21824
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-21824/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- DSA-5170 vendor-advisory
- [debian-lts-announce] 20221005 [SECURITY] [DLA 3137-1] nodejs security update mailing-list
- https://nvd.nist.gov/vuln/detail/CVE-2022-21824 advisory