CVE-2019-20920

EUVD-2022-0789
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
NISTPrimary
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
Base Score
CVSS 3.x
EPSS Score
Percentile: 58%
Affected Products (NVD)
VendorProductVersion
handlebarsjshandlebars
𝑥
< 3.0.8
handlebarsjshandlebars
4.0.0 ≤
𝑥
< 4.5.3
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
node-handlebars
bookworm
3:4.7.7+~4.1.0-1
fixed
bullseye
3:4.7.6+~4.1.0-2
fixed
sid
3:4.7.7+~4.1.0-1
fixed
stretch
ignored
trixie
3:4.7.7+~4.1.0-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
libjs-handlebars
bionic
dne
focal
dne
groovy
dne
hirsute
dne
impish
dne
jammy
dne
kinetic
dne
lunar
dne
mantic
dne
noble
dne
trusty
dne
xenial
dne
node-handlebars
bionic
needs-triage
focal
not-affected
groovy
not-affected
hirsute
not-affected
impish
not-affected
jammy
not-affected
kinetic
not-affected
lunar
not-affected
mantic
not-affected
noble
not-affected
trusty
dne
xenial
dne