{"id":"CVE-2019-20920","url":"https://www.cyber-defence.io/tools/cve/CVE-2019-20920","generatedAt":"2026-10-27T21:19:00.309Z","title":"Handlebars before 3.0.8 and 4.x before 4.5.3 is vulnerable to Arbitrary Code Execution.","description":"Handlebars before 3.0.8 and 4.x before 4.5.3 is vulnerable to Arbitrary Code Execution. The lookup helper fails to properly validate templates, allowing attackers to submit templates that execute arbitrary JavaScript. This can be used to run arbitrary code on a server processing Handlebars templates or in a victim's browser (effectively serving as XSS).","published":"2020-09-30T18:15:18.000Z","lastModified":"2026-10-08T22:16:55.000Z","status":"Modified","sourceIdentifier":"cve@mitre.org","cvss":{"version":"3.1","score":8.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L"},"cwe":["CWE-94"],"affected":["handlebarsjs/handlebars"],"epss":{"score":0.03154,"percentile":0.87872,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (3.15%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-HANDLEBARS-534478","tags":["Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://www.npmjs.com/advisories/1316","tags":["Exploit","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://www.npmjs.com/advisories/1324","tags":["Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://snyk.io/vuln/SNYK-JS-HANDLEBARS-534478","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.npmjs.com/advisories/1316","tags":["Exploit","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.npmjs.com/advisories/1324","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2019-20920","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}