CVE-2019-20922
Regular Expression Denial of Service in Handlebars
Description
Handlebars before 4.4.5 allows Regular Expression Denial of Service (ReDoS) because of eager matching. The parser may be forced into an endless loop while processing crafted templates. This may allow attackers to exhaust system resources.
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » handlebarsvia npm handlebars | >= 4.0.0, < 4.4.5 | 4.4.5 |
| org.webjars » handlebarsvia npm handlebars | >= 4.0.0, < 4.4.5 | 4.4.5 |
| org.webjars.npm » handlebarsvia npm handlebars | >= 4.0.0, < 4.4.5 | 4.4.5 |
Blast radius
47% of the dependent artifacts (16) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 38 |
| 2 hops | 51 |
| 3 hops | 23 |
Most used dependents
- com.foreach.across.modules » admin-web-module21 usages
- net.aequologica.neo » geppaequo-tags15 usages
- com.foreach.across.modules » bootstrap-ui-module7 usages
- net.aequologica.neo » geppaequo-web7 usages
- org.webjars.npm » openlayers4 usages
- com.slyak » slyak-web3 usages
- com.foreach.imageserver » imageserver-admin2 usages
- org.webjars.npm » closure-util2 usages
- net.aequologica.neo » chat2 usages
- net.aequologica.neo » quintessence-web2 usages
- net.aequologica.neo » buildhub-persist2 usages
- net.aequologica.neo » shakuntala-doc2 usages
- net.aequologica.neo » tuhao-core2 usages
- net.aequologica.neo » buildhub-web1 usages
- net.aequologica.neo » dagr-web1 usages
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
References
| Advisory | NVD CVE-2019-20922 | nvd.nist.gov |
| Web | handlebars-lang/handlebars.js commit 8d5530e | github.com |
| Web | vuln/SNYK-JS-HANDLEBARS-480388 | snyk.io |
| Web | advisories/1300 | npmjs.com |
| Web | package/handlebars | npmjs.com |
