CVE-2019-20922
HIGH 7.5CVSS 3.1Regular Expression Denial of Service in Handlebars
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.
- Published
- 30 Sep 2020
- Last modified
- 8 Jul 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-400
- Also known as
- GHSA-62gr-4qp9-h98fSNYK-JS-HANDLEBARS-480388
- Sources
- NVDJSONOSV GHSA-62gr-4qp9-h98fJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.8 | AV:N/AC:L/Au:N/C:N/I:N/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | handlebarsjs | handlebarscpe:2.3:a:handlebarsjs:handlebars:*:*:*:*:*:node.js:*:* |
>= 4.0.0, < 4.4.5 | 4.4.5 |
| OSV | npm | handlebars | >= 4.0.0, < 4.4.5 | 4.4.5 |
References
- https://github.com/handlebars-lang/handlebars.js/commit/8d5530ee2c3ea9f0aee3fde310b9f36887d00b8b · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-HANDLEBARS-480388 · Third Party Advisory, WEB
- https://www.npmjs.com/advisories/1300 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2019-20922 · ADVISORY
- https://www.npmjs.com/package/handlebars · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 30 Sep 2020)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 10 Feb 2022)