{"id":"UBUNTU-CVE-2022-21824","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 \u003e= 12.22.9, \u003e= 14.18.3, \u003e= 16.13.2, and \u003e= 17.3.1 use a null protoype for the object these properties are being assigned to.","modified":"2025-07-16T08:27:42.989446Z","published":"2022-02-24T19:15:00Z","withdrawn":"2025-07-18T16:49:14Z","upstream":["CVE-2022-21824"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-21824"},{"type":"REPORT","url":"https://nodejs.org/en/blog/vulnerability/jan-2022-security-releases/#prototype-pollution-via-console-table-properties-low-cve-2022-21824"},{"type":"REPORT","url":"https://github.com/nodejs/node/commit/be69403528da99bf3df9e1dc47186f18ba59cb5e"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-21824"}],"affected":[{"package":{"name":"nodejs","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/nodejs@12.22.9~dfsg-1ubuntu3?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"12.22.9~dfsg-1ubuntu3"}]}],"versions":["12.22.5~dfsg-5ubuntu1","12.22.7~dfsg-2ubuntu1","12.22.7~dfsg-2ubuntu3","12.22.9~dfsg-1ubuntu2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libnode-dev","binary_version":"12.22.9~dfsg-1ubuntu3"},{"binary_name":"libnode72","binary_version":"12.22.9~dfsg-1ubuntu3"},{"binary_name":"libnode72-dbgsym","binary_version":"12.22.9~dfsg-1ubuntu3"},{"binary_name":"nodejs","binary_version":"12.22.9~dfsg-1ubuntu3"},{"binary_name":"nodejs-dbgsym","binary_version":"12.22.9~dfsg-1ubuntu3"},{"binary_name":"nodejs-doc","binary_version":"12.22.9~dfsg-1ubuntu3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21824.json"}},{"package":{"name":"nodejs","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/nodejs@18.19.1+dfsg-6ubuntu5?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"18.19.1+dfsg-6ubuntu5"}]}],"versions":["18.13.0+dfsg1-1ubuntu2","18.19.1+dfsg-2ubuntu4","18.19.1+dfsg-6ubuntu1","18.19.1+dfsg-6ubuntu2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libnode-dev","binary_version":"18.19.1+dfsg-6ubuntu5"},{"binary_name":"libnode109","binary_version":"18.19.1+dfsg-6ubuntu5"},{"binary_version":"18.19.1+dfsg-6ubuntu5","binary_name":"libnode109-dbgsym"},{"binary_name":"nodejs","binary_version":"18.19.1+dfsg-6ubuntu5"},{"binary_name":"nodejs-dbgsym","binary_version":"18.19.1+dfsg-6ubuntu5"},{"binary_name":"nodejs-doc","binary_version":"18.19.1+dfsg-6ubuntu5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21824.json"}},{"package":{"name":"nodejs","ecosystem":"Ubuntu:25.04","purl":"pkg:deb/ubuntu/nodejs@20.18.1+dfsg-1ubuntu2?arch=source&distro=plucky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20.18.1+dfsg-1ubuntu2"}]}],"versions":["20.16.0+dfsg-1ubuntu1","20.17.0+dfsg-2ubuntu1","20.18.0+dfsg-2","20.18.1+dfsg-1ubuntu1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libnode-dev","binary_version":"20.18.1+dfsg-1ubuntu2"},{"binary_name":"libnode115","binary_version":"20.18.1+dfsg-1ubuntu2"},{"binary_name":"libnode115-dbgsym","binary_version":"20.18.1+dfsg-1ubuntu2"},{"binary_version":"20.18.1+dfsg-1ubuntu2","binary_name":"nodejs"},{"binary_name":"nodejs-dbgsym","binary_version":"20.18.1+dfsg-1ubuntu2"},{"binary_name":"nodejs-doc","binary_version":"20.18.1+dfsg-1ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21824.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H"},{"type":"Ubuntu","score":"medium"}]}