Skip to content

CVE-2019-20920 Arbitrary Code Execution in Handlebars

HighCVSS 8.1 EPSS 3.0%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

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

Affected products

ProductAffected versionsFixed in
npm handlebars(npm) < 3.0.8 3.0.8
npm handlebars(npm) >= 4.0.0, < 4.5.3 4.5.3
debian/node-handlebars(Debian:12) < 3:4.5.3-1 3:4.5.3-1
debian/node-handlebars(Debian:13) < 3:4.5.3-1 3:4.5.3-1
debian/node-handlebars(Debian:14) < 3:4.5.3-1 3:4.5.3-1
handlebarsjs handlebars < 3.0.8 3.0.8
handlebarsjs handlebars >= 4.0.0, < 4.5.3 4.5.3
ubuntu/node-handlebars(Ubuntu:18.04) All versions No fix listed
ubuntu/node-handlebars(Ubuntu:18.04) = 3:4.0.10-5 No fix listed

References