Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. handlebars
  4. ›
  5. CVE-2019-20922

CVE-2019-20922: Uncontrolled Resource Consumption

February 10, 2022

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.

References

  • github.com/advisories/GHSA-62gr-4qp9-h98f
  • github.com/handlebars-lang/handlebars.js/commit/8d5530ee2c3ea9f0aee3fde310b9f36887d00b8b
  • nvd.nist.gov/vuln/detail/CVE-2019-20922
  • snyk.io/vuln/SNYK-JS-HANDLEBARS-480388
  • www.npmjs.com/advisories/1300
  • www.npmjs.com/package/handlebars

Code Behaviors & Features

Detect and mitigate CVE-2019-20922 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.0.0 before 4.4.5

Fixed versions

  • 4.4.5

Solution

Upgrade to version 4.4.5 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/handlebars/CVE-2019-20922.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:38 +0000.