{"id":"CVE-2019-20922","published":"2020-09-30T12:30:22Z","modified":"2024-08-05T03:00:18Z","title":"Handlebars before 4.4.5 allows Regular Expression Denial of Service (ReDoS) because of eager matching","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03691,"percentile":0.89973,"provenance":"source"},"cwes":[],"references":[{"url":"https://www.npmjs.com/advisories/1300","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JS-HANDLEBARS-480388","tags":["x_refsource_MISC"]},{"url":"https://github.com/handlebars-lang/handlebars.js/commit/8d5530ee2c3ea9f0aee3fde310b9f36887d00b8b","tags":["x_refsource_MISC"]}],"priority":{"score":18.0,"factors":[{"name":"EPSS percentile","points":17.99}]},"affected":[{"ecosystem":"npm","package":"handlebars","vulnerableRanges":[">=4.0.0, <4.4.5"],"patched":["4.4.5"],"from":["GHSA-62gr-4qp9-h98f"],"provenance":"source"}],"summary":{"text":"The Handlebars templating library, in versions before 4.4.5, contains a flaw in its parser that uses eager regular expression matching, which can cause a Regular Expression Denial of Service (ReDoS) condition.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:26:27Z"},"euvd":{"id":"EUVD-2022-0849","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2015-8861","published":"2017-01-23","fixed":"4.0.0","kev":false},{"cve":"CVE-2019-19919","published":"2019-12-20","fixed":"4.3.0","kev":false,"link":{"from":"CVE-2019-19919","to":"CVE-2019-20922","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:handlebars","fromFixed":"4.3.0","toFixed":"4.4.5","daysApart":285}]}},{"cve":"CVE-2019-20922","published":"2020-09-30","fixed":"4.4.5","kev":false},{"cve":"CVE-2019-20920","published":"2020-09-30","fixed":"4.5.3","kev":false,"link":{"from":"CVE-2019-20922","to":"CVE-2019-20920","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:handlebars","fromFixed":"4.4.5","toFixed":"4.5.3","daysApart":0}]}},{"cve":"CVE-2021-23369","published":"2021-04-12","fixed":"4.7.7","kev":false},{"cve":"CVE-2021-23383","published":"2021-05-04","fixed":"4.7.7","kev":false}],"package":"npm:handlebars"}}