HIGH 8.1

CVE-2019-20920

Arbitrary Code Execution in Handlebars

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 Maven artifacts (3)

ArtifactAffected versionsFixed in
org.mvnpm » handlebarsvia npm handlebars
< 3.0.8>= 4.0.0, < 4.5.3
3.0.8, 4.5.3
org.webjars » handlebarsvia npm handlebars
< 3.0.8>= 4.0.0, < 4.5.3
3.0.8, 4.5.3
org.webjars.npm » handlebarsvia npm handlebars
< 3.0.8>= 4.0.0, < 4.5.3
3.0.8, 4.5.3

Blast radius

2affected artifacts
40affected versions
114dependent artifacts (est.)
1,906dependent versions

60% of the dependent artifacts (69) still pull an affected version in their latest release.

DepthDependent versions
Direct
216
2 hops
1,284
3 hops
258
4 hops
123
5 hops
15
6 hops
10

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

Other ecosystems

Also affects npm (1 package) . See all on OSV