{"id":"UBUNTU-CVE-2021-23358","details":"The package underscore from 1.13.0-0 and before 1.13.0-2, from 1.3.2 and before 1.12.1 are vulnerable to Arbitrary Code Injection via the template function, particularly when a variable property is passed as an argument as it is not sanitized.","modified":"2026-01-30T02:41:39.675771Z","published":"2021-03-29T14:15:00Z","related":["USN-4913-1","USN-4913-2"],"upstream":["CVE-2021-23358"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-23358"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JS-UNDERSCORE-1080984"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4913-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4913-2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-23358"}],"affected":[{"package":{"name":"underscore","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/underscore@1.4.4-2ubuntu1+esm1?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.4-2ubuntu1+esm1"}]}],"versions":["1.4.4-2ubuntu1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"libjs-underscore","binary_version":"1.4.4-2ubuntu1+esm1"},{"binary_name":"node-underscore","binary_version":"1.4.4-2ubuntu1+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23358.json"}},{"package":{"name":"underscore","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/underscore@1.7.0~dfsg-1ubuntu1.1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.0~dfsg-1ubuntu1.1"}]}],"versions":["1.7.0~dfsg-1ubuntu1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libjs-underscore","binary_version":"1.7.0~dfsg-1ubuntu1.1"},{"binary_name":"node-underscore","binary_version":"1.7.0~dfsg-1ubuntu1.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23358.json"}},{"package":{"name":"underscore","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/underscore@1.8.3~dfsg-1ubuntu0.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.3~dfsg-1ubuntu0.1"}]}],"versions":["1.8.3~dfsg-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libjs-underscore","binary_version":"1.8.3~dfsg-1ubuntu0.1"},{"binary_name":"node-underscore","binary_version":"1.8.3~dfsg-1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23358.json"}},{"package":{"name":"underscore","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/underscore@1.9.1~dfsg-1ubuntu0.20.04.1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.1~dfsg-1ubuntu0.20.04.1"}]}],"versions":["1.9.1~dfsg-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"1.9.1~dfsg-1ubuntu0.20.04.1","binary_name":"libjs-underscore"},{"binary_name":"node-underscore","binary_version":"1.9.1~dfsg-1ubuntu0.20.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23358.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}