{"id":"UBUNTU-CVE-2021-23383","details":"The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to compile templates coming from an untrusted source.","modified":"2026-05-20T16:04:48.674263024Z","published":"2021-05-04T09:15:00Z","upstream":["CVE-2021-23383"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-23383"},{"type":"REPORT","url":"https://github.com/handlebars-lang/handlebars.js/commit/f0589701698268578199be25285b2ebea1c1e427"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JS-HANDLEBARS-1279029"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1279032"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1279031"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1279030"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-23383"}],"affected":[{"package":{"name":"node-handlebars","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/node-handlebars?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.0.10-5"],"ecosystem_specific":{"binaries":[{"binary_name":"handlebars","binary_version":"3:4.0.10-5"},{"binary_name":"libjs-handlebars","binary_version":"3:4.0.10-5"},{"binary_name":"libjs-handlebars.runtime","binary_version":"3:4.0.10-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23383.json"}},{"package":{"name":"node-handlebars","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/node-handlebars?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.1.0-1","3:4.5.3-1","3:4.7.2-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3:4.7.2-1","binary_name":"handlebars"},{"binary_name":"libjs-handlebars","binary_version":"3:4.7.2-1"},{"binary_name":"libjs-handlebars.runtime","binary_version":"3:4.7.2-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23383.json"}},{"package":{"name":"node-handlebars","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/node-handlebars?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.7.6+~4.1.0-2","3:4.7.7+~4.1.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3:4.7.7+~4.1.0-1","binary_name":"handlebars"},{"binary_name":"libjs-handlebars","binary_version":"3:4.7.7+~4.1.0-1"},{"binary_name":"libjs-handlebars.runtime","binary_version":"3:4.7.7+~4.1.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23383.json"}},{"package":{"name":"node-handlebars","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/node-handlebars?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.7.7+~4.1.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3:4.7.7+~4.1.0-1","binary_name":"handlebars"},{"binary_name":"libjs-handlebars","binary_version":"3:4.7.7+~4.1.0-1"},{"binary_version":"3:4.7.7+~4.1.0-1","binary_name":"libjs-handlebars.runtime"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23383.json"}},{"package":{"name":"node-handlebars","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/node-handlebars?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.7.7+~4.1.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"handlebars","binary_version":"3:4.7.7+~4.1.0-1"},{"binary_name":"libjs-handlebars","binary_version":"3:4.7.7+~4.1.0-1"},{"binary_version":"3:4.7.7+~4.1.0-1","binary_name":"libjs-handlebars.runtime"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23383.json"}},{"package":{"name":"node-handlebars","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/node-handlebars?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.7.7+~4.1.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"handlebars","binary_version":"3:4.7.7+~4.1.0-1"},{"binary_version":"3:4.7.7+~4.1.0-1","binary_name":"libjs-handlebars"},{"binary_name":"libjs-handlebars.runtime","binary_version":"3:4.7.7+~4.1.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23383.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}