{"id":"GHSA-f2jv-r9rf-7988","revision":"d35613af2f3a488fb7d447e218653db3","records":[{"revision":"d35613af2f3a488fb7d447e218653db3","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-f2jv-r9rf-7988","aliases":["CVE-2021-23369"],"title":"Remote code execution in handlebars when compiling templates","description":"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.","state":0,"publishedAt":"2021-05-06T15:57:44+00:00","modifiedAt":"2026-09-10T03:49:14.8297274+00:00","affected":[{"ecosystem":"npm","name":"handlebars","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"4.7.7"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Maven","name":"org.webjars:handlebars","ranges":[{"type":"ECOSYSTEM","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"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"],"rawVersionEvidence":null},{"ecosystem":"Maven","name":"org.webjars.npm:handlebars","ranges":[{"type":"ECOSYSTEM","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"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"],"rawVersionEvidence":null},{"ecosystem":"Maven","name":"org.webjars.bowergithub.wycats:handlebars.js","ranges":[{"type":"ECOSYSTEM","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"4.7.7"}]}],"versions":["4.1.1","4.2.0","4.4.5","4.5.3","4.7.2"],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2021-23369","https://github.com/handlebars-lang/handlebars.js/commit/b6d3de7123eebba603e321f04afdbae608e8fea8","https://github.com/handlebars-lang/handlebars.js/commit/f0589701698268578199be25285b2ebea1c1e427","https://github.com/wycats/handlebars.js","https://security.netapp.com/advisory/ntap-20210604-0008","https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074950","https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074951","https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074952","https://snyk.io/vuln/SNYK-JS-HANDLEBARS-1056767"],"sourceUrl":"https://github.com/advisories/GHSA-f2jv-r9rf-7988","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-f2jv-r9rf-7988","identifiers":["GHSA-f2jv-r9rf-7988","CVE-2021-23369"]},"retained":false,"historicalAffected":[]}],"coverage":[]}