CVE-2019-20920

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).
Code Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
8.1 HIGH
NETWORK
HIGH
NONE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L
mitreCNA
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 65%
VendorProductVersion
handlebarsjshandlebars
𝑥
< 3.0.8
handlebarsjshandlebars
4.0.0 ≤
𝑥
< 4.5.3
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
node-handlebars
bullseye
3:4.7.6+~4.1.0-2
fixed
stretch
ignored
sid
3:4.7.7+~4.1.0-1
fixed
trixie
3:4.7.7+~4.1.0-1
fixed
bookworm
3:4.7.7+~4.1.0-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
libjs-handlebars
noble
dne
mantic
dne
lunar
dne
kinetic
dne
jammy
dne
impish
dne
hirsute
dne
groovy
dne
focal
dne
bionic
dne
xenial
dne
trusty
dne
node-handlebars
noble
not-affected
mantic
not-affected
lunar
not-affected
kinetic
not-affected
jammy
not-affected
impish
not-affected
hirsute
not-affected
groovy
not-affected
focal
not-affected
bionic
needs-triage
xenial
dne
trusty
dne