{"id":"UBUNTU-CVE-2021-23369","details":"The package handlebars before 4.7.7 are vulnerable to Remote Code Execution (RCE) when selecting certain compiling options to compile templates coming from an untrusted source.","modified":"2025-10-24T04:50:08Z","published":"2021-04-12T14:15:00Z","upstream":["CVE-2021-23369"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-23369"},{"type":"REPORT","url":"https://github.com/handlebars-lang/handlebars.js/commit/b6d3de7123eebba603e321f04afdbae608e8fea8"},{"type":"REPORT","url":"https://github.com/handlebars-lang/handlebars.js/commit/f0589701698268578199be25285b2ebea1c1e427"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JS-HANDLEBARS-1056767"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074950"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074951"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074952"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-23369"}],"affected":[{"package":{"name":"node-handlebars","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/node-handlebars@3:4.0.10-5?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_version":"3:4.0.10-5","binary_name":"libjs-handlebars"},{"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-23369.json"}},{"package":{"name":"node-handlebars","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/node-handlebars@3:4.7.2-1?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_name":"handlebars","binary_version":"3:4.7.2-1"},{"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-23369.json"}},{"package":{"name":"node-handlebars","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/node-handlebars@3:4.7.7+~4.1.0-1?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_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_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-23369.json"}}],"schema_version":"1.7.3","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"}]}