CVE-2019-20922 Details
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.
A Regular Expression Denial-of-Service (ReDoS) vulnerability has been identified in Handlebars versions prior to 4.4.5. This issue arises from eager matching in the template parser, which can be exploited to create an endless loop. Attackers may craft specific templates that force the parser to backtrack extensively, leading to excessive CPU consumption and exhaustion of system resources.
Users are advised to upgrade Handlebars to version 4.4.5 or higher.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/handlebars-lang/handlebars.js/commit/8d5530ee2c3ea9f0aee3fde310b9f36887d00b8b | CVE | PatchThird Party Advisory |
| https://snyk.io/vuln/SNYK-JS-HANDLEBARS-480388 | CVE | Third Party Advisory |
| https://www.npmjs.com/advisories/1300 | CVE | Third Party Advisory |
| https://github.com/handlebars-lang/handlebars.js/commit/8d5530ee2c3ea9f0aee3fde310b9f36887d00b8b | [email protected] | PatchThird Party Advisory |
| https://snyk.io/vuln/SNYK-JS-HANDLEBARS-480388 | [email protected] | Third Party Advisory |
| https://www.npmjs.com/advisories/1300 | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| handlebarsjs handlebars | >= 4.0.0, < 4.4.5 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Jul 21, 2021 | CWE Remap | [email protected] |
| Oct 7, 2020 | Initial Analysis | [email protected] |