{"id":"GHSA-f2jv-r9rf-7988","summary":"Remote code execution in handlebars when compiling templates","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.","aliases":["CVE-2021-23369"],"modified":"2026-07-17T21:08:51.863931085Z","published":"2021-05-06T15:57:44Z","database_specific":{"github_reviewed_at":"2021-04-13T22:07:10Z","nvd_published_at":"2021-04-12T14:15:00Z","cwe_ids":["CWE-94"],"severity":"CRITICAL","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23369"},{"type":"WEB","url":"https://github.com/handlebars-lang/handlebars.js/commit/b6d3de7123eebba603e321f04afdbae608e8fea8"},{"type":"WEB","url":"https://github.com/handlebars-lang/handlebars.js/commit/f0589701698268578199be25285b2ebea1c1e427"},{"type":"PACKAGE","url":"https://github.com/wycats/handlebars.js"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20210604-0008"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074950"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074951"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074952"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-HANDLEBARS-1056767"}],"affected":[{"package":{"name":"handlebars","ecosystem":"npm","purl":"pkg:npm/handlebars"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.7.7"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-f2jv-r9rf-7988/GHSA-f2jv-r9rf-7988.json"}},{"package":{"name":"org.webjars:handlebars","ecosystem":"Maven","purl":"pkg:maven/org.webjars/handlebars"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.7.7"}]}],"versions":["1.0.0","1.0.0-rc.3","1.0.0-rc.4","1.0.rc.1","1.1.2","1.2.1","1.3.0","2.0.0","2.0.0-1","2.0.0-alpha.2","3.0.0","3.0.0-1","3.0.3","4.0.11","4.0.11-1","4.0.13","4.0.14","4.0.2","4.0.5","4.0.6","4.7.6"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-f2jv-r9rf-7988/GHSA-f2jv-r9rf-7988.json"}},{"package":{"name":"org.webjars.npm:handlebars","ecosystem":"Maven","purl":"pkg:maven/org.webjars.npm/handlebars"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.7.7"}]}],"versions":["1.3.0","2.0.0","3.0.0","3.0.1","3.0.3","4.0.11","4.0.12","4.0.14","4.0.2","4.0.5","4.0.6","4.1.1","4.1.2","4.2.1","4.3.1","4.4.0","4.4.5","4.5.3","4.7.2","4.7.3","4.7.6"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-f2jv-r9rf-7988/GHSA-f2jv-r9rf-7988.json"}},{"package":{"name":"org.webjars.bowergithub.wycats:handlebars.js","ecosystem":"Maven","purl":"pkg:maven/org.webjars.bowergithub.wycats/handlebars.js"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.7.7"}]}],"versions":["4.1.1","4.2.0","4.4.5","4.5.3","4.7.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-f2jv-r9rf-7988/GHSA-f2jv-r9rf-7988.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}