HIGH 7.5

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)

ArtifactAffected versionsFixed 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

2affected artifacts
21affected versions
34dependent artifacts (est.)
112dependent versions

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

DepthDependent versions
Direct
38
2 hops
51
3 hops
23

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