{"id":"UBUNTU-CVE-2023-0842","details":"xml2js version 0.4.23 allows an external attacker to edit or add new properties to an object. This is possible because the application does not properly validate incoming JSON keys, thus allowing the __proto__ property to be edited.","modified":"2026-05-20T16:13:19.789054585Z","published":"2023-04-05T20:15:00Z","upstream":["CVE-2023-0842"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-0842"},{"type":"REPORT","url":"https://fluidattacks.com/advisories/myers/"},{"type":"REPORT","url":"https://github.com/Leonidas-from-XIV/node-xml2js/issues/663"},{"type":"REPORT","url":"https://github.com/Leonidas-from-XIV/node-xml2js/"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-0842"}],"affected":[{"package":{"name":"node-xml2js","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/node-xml2js?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.8-1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-xml2js","binary_version":"0.2.8-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-0842.json"}},{"package":{"name":"node-xml2js","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/node-xml2js?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.8-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.2.8-1","binary_name":"node-xml2js"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-0842.json"}},{"package":{"name":"node-xml2js","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/node-xml2js?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.8-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.2.8-1","binary_name":"node-xml2js"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-0842.json"}},{"package":{"name":"node-xml2js","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/node-xml2js?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.8-1.1","0.4.23+~cs15.4.0+dfsg-2"],"ecosystem_specific":{"binaries":[{"binary_name":"node-xml2js","binary_version":"0.4.23+~cs15.4.0+dfsg-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-0842.json"}},{"package":{"name":"node-xml2js","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/node-xml2js?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.2+~cs15.1.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-xml2js","binary_version":"0.6.2+~cs15.1.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-0842.json"}},{"package":{"name":"node-xml2js","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/node-xml2js?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.2+~cs15.1.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.6.2+~cs15.1.1-1","binary_name":"node-xml2js"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-0842.json"}},{"package":{"name":"node-xml2js","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/node-xml2js?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.2+~cs15.1.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.6.2+~cs15.1.1-1","binary_name":"node-xml2js"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-0842.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}