CVE-2019-20922Handlebarsjs Handlebars
High 7.5 No auth needed
Follow: this CVE · Handlebarsjs · Handlebarsjs Handlebars We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 3.7% probability of exploitation in 30 days · percentile 91
- Auth required
- No
- Published
- Sep 30, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-400
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Handlebars.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | handlebars |
≥ 4.0.0 < 4.4.5 |
4.4.5 |
npm install handlebars@4.4.5 |
Per OSV / GitHub Advisories (GHSA-62gr-4qp9-h98f). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| handlebarsjs | handlebars | ≥ 4.0.0 < 4.4.5 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- snyk.io Third Party Advisory
- www.npmjs.com Third Party Advisory