Ubuntu CVE Tracker
UBUNTU-CVE-2022-21824
This advisory was withdrawn on 18 July 2025.
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:22.04:LTS | nodejs | All versions before 12.22.9~dfsg-1ubuntu3 (fixed in 12.22.9~dfsg-1ubuntu3) |
| Ubuntu:24.04:LTS | nodejs | All versions before 18.19.1+dfsg-6ubuntu5 (fixed in 18.19.1+dfsg-6ubuntu5) |
| Ubuntu:25.04 | nodejs | All versions before 20.18.1+dfsg-1ubuntu2 (fixed in 20.18.1+dfsg-1ubuntu2) |
References
- https://ubuntu.com/security/CVE-2022-21824
- https://nodejs.org/en/blog/vulnerability/jan-2022-security-releases/#prototype-pollution-via-console-table-properties-low-cve-2022-21824
- https://github.com/nodejs/node/commit/be69403528da99bf3df9e1dc47186f18ba59cb5e
- https://www.cve.org/CVERecord?id=CVE-2022-21824