CVE Catalog

CVE-2019-20920

HighCVSS 8.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

High risk
3.19%

88th percentile - higher than 88% of all known CVEs

Summary

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).

Risk Assessment

An attacker can execute arbitrary code on the server or in the user's browser, leading to system compromise or session data theft. High risk for applications using Handlebars to render templates from untrusted sources.

Recommendation

Update Handlebars to version 3.0.8 or 4.5.3 (or later). Avoid using untrusted templates and consider input validation.

Other vulnerabilities in Handlebars

See all
Original NVD description (English source)

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).

Vulnerability data from NVD (NIST) · CISA KEV · EPSS