Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2019-20922

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2019-20922
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:03 UTC · Revision 1

Source evidence

CVE-2019-20922

core-osv · Original source

Published 30 Sept 2020, 18:15 UTC

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.

osv:CVE-2019-20922
Complete source record
{
  "id": "2014664275d8013adce28cf240fdcd64f03033942293db3062154b67b0c3acd9",
  "url": "https://osv.dev/vulnerability/CVE-2019-20922",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2019-20922",
    "summary": "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.",
    "evidence": "osv:CVE-2019-20922",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2019-20922",
      "aliases": [
        "CVE-2019-20922",
        "GHSA-62gr-4qp9-h98f",
        "SNYK-JS-HANDLEBARS-480388"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/handlebars-lang/handlebars.js",
              "type": "GIT",
              "events": [
                {
                  "introduced": "bff5fab8f9d42e21950be00dcf1cedf4dc1a565b"
                },
                {
                  "fixed": "8e1cce79186ab6caeb8c6ec9c1f8bcfa1a40e83d"
                },
                {
                  "fixed": "8d5530ee2c3ea9f0aee3fde310b9f36887d00b8b"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:handlebarsjs:handlebars:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "4.0.0"
                      },
                      {
                        "fixed": "4.4.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "8d5530ee2c3ea9f0aee3fde310b9f36887d00b8b"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v4.4.4",
            "v4.4.3",
            "v4.4.2",
            "v4.4.1",
            "v4.2.1",
            "v4.3.4",
            "v4.4.0",
            "v4.3.3",
            "v4.3.2",
            "v4.3.1",
            "v4.3.0",
            "v4.2.0",
            "v4.1.2-0",
            "v4.1.2",
            "v4.1.1",
            "v4.0.12",
            "v4.0.11",
            "v4.0.10",
            "v4.0.9",
            "v4.0.8",
            "v4.0.7",
            "v4.0.6",
            "v4.0.5",
            "v4.0.4",
            "v4.0.3",
            "v4.0.2",
            "v4.0.1",
            "v4.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-20922.json"
          }
        }
      ],
      "modified": "2026-10-20T10:52:40.802337628Z",
      "provider": "osv",
      "references": [
        "https://snyk.io/vuln/SNYK-JS-HANDLEBARS-480388",
        "https://www.npmjs.com/advisories/1300",
        "https://github.com/handlebars-lang/handlebars.js/commit/8d5530ee2c3ea9f0aee3fde310b9f36887d00b8b"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2019-20922",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 383734,
  "published_at": "2020-09-30T18:15:18.1+00:00"
}