CVE-2019-20922
Regular Expression Denial of Service in Handlebars
Reported by mitre · Published September 30, 2020
handlebars is fixed in 4.4.5 (npm)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| handlebars | npm | 4.4.5 |
| handlebars | handlebarsjs | 4.4.5 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| npm | handlebars | 4.0.0 |
| n/a | n/a | * |
Timeline
- Sep 30, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Apr 4, 2022 CVE Updated
- Mar 9, 2026 Security Advisory
- Sep 11, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-20922
vulnetix vdb fixes CVE-2019-20922
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-20922/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2019-20922 advisory
- https://www.npmjs.com/package/handlebars url
- https://github.com/advisories/GHSA-62gr-4qp9-h98f advisory