CVE-2019-20920

High

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

SeverityHigh
CVSS8.1
Exploit probability—
ProductHandlebars
PublishedSep 30, 2020
First seenSep 30, 2020

How to fix

Update
  • handlebarsjs handlebars3.0.8, 4.5.3 or later
  • handlebars3.0.8, 4.5.3 or later

Affected products

ProductAffected versionsFixed in
handlebarsjs handlebarsv < 3.0.8, 4.0.0 ≤ v < 4.5.33.0.8, 4.5.3
handlebarsnpmv < 3.0.8, 4.0.0 ≤ v < 4.5.33.0.8, 4.5.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.