CVE-2019-20920
Handlebarsjs Handlebars vulnerability
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).
Affected products
Handlebars. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Handlebarsjs Handlebars runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- snyk.io/vuln/SNYK-JS-HANDLEBARS-534478 · Third Party Advisory
- www.npmjs.com/advisories/1316 · Exploit
- www.npmjs.com/advisories/1324 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2019-20920
- cve.org/CVERecord?id=CVE-2019-20920
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.