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)
| Artifact | Affected versions | Fixed 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
59% of the dependent artifacts (53) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 178 |
| 2 hops | 1,233 |
| 3 hops | 235 |
| 4 hops | 123 |
| 5 hops | 15 |
| 6 hops | 10 |
Most used dependents
- org.kuali.rice » rice-impl65 usages
- ro.isdc.wro4j » wro4j-maven-plugin48 usages
- ro.isdc.wro4j » wro4j-extensions39 usages
- org.kuali.rice » rice-krad-web-framework38 usages
- org.kuali.rice » rice-core-impl28 usages
- org.kuali.rice » rice-edl-impl24 usages
- org.nuiton.js » nuiton-js-test12 usages
- com.evolveum.midpoint.gui » admin-gui10 usages
- org.wisdom-framework » wisdom-monitor7 usages
- net.aequologica.neo » geppaequo-web7 usages
- com.github.avarabyeu.jashing » jashing7 usages
- com.xebialabs.xl-test » server7 usages
- org.kuali.rice » rice-core-web7 usages
- org.nuiton.js » nuiton-js-wro6 usages
- ru.yandex.qatools.camelot » camelot-web5 usages
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
References
| Advisory | NVD CVE-2015-8861 | nvd.nist.gov |
| Advisory | GitHub advisory GHSA-9prh-257w-9277 | github.com |
| Package | wycats/handlebars.js | github.com |
| Web | wycats/handlebars.js pull request #1083 | github.com |
| Web | handlebars_vulnerability_research_findings | blog.srcclr.com |
| Web | advisories/61 | npmjs.com |
| Web | blog/handlebars_vulnerability_research_findings | sourceclear.com |
| Web | security/tns-2016-18 | tenable.com |
| Web | lists/oss-security/2016/04/20/11 | openwall.com |
| Web | bid/96434 | securityfocus.com |
