MODERATE 6.1

CVE-2015-8861

Cross-Site Scripting in handlebars

Description

Versions of handlebars prior to 4.0.0 are affected by a cross-site scripting vulnerability when attributes in handlebar templates are not quoted.

Proof of Concept

Template: <a href={{foo}}/>

Input: { 'foo' : 'test.com onload=alert(1)'}

Rendered result: <a href=test.com onload=alert(1)/>

Recommendation

Update to version 4.0.0 or later. Alternatively, ensure that all attributes in handlebars templates are encapsulated with quotes.

Affected Maven artifacts (3)

ArtifactAffected versionsFixed in
org.mvnpm » handlebarsvia npm handlebars
< 4.0.0
4.0.0
org.webjars » handlebarsvia npm handlebars
< 4.0.0
4.0.0
org.webjars.npm » handlebarsvia npm handlebars
< 4.0.0
4.0.0

Blast radius

2affected artifacts
18affected versions
89dependent artifacts (est.)
1,794dependent versions

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

DepthDependent versions
Direct
178
2 hops
1,233
3 hops
235
4 hops
123
5 hops
15
6 hops
10

Most used dependents

Computed from the dependency graph of build 20261203.1441 (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