Advisory

GHSA-62gr-4qp9-h98f

Also known as: CVE-2019-20922, SNYK-JS-HANDLEBARS-480388

Summary

Regular Expression Denial of Service in Handlebars

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-02-10 20:38 UTC
Modified
2026-07-08 06:49 UTC

Affected packages and fixes

handlebars

npm · All systems

Affected

  • introduced 4.0.0, fixed 4.4.5 (semver)

Fixed versions

4.4.5

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences