CVEvulnerability

CVE-2019-20920

8.1 HIGH Published 2020-09-30 Modified 2026-10-08 Official page ↗
Status
Modified
Published
2020-09-30
Last modified
2026-10-08
Assigner
[email protected]
CVSS 3.1 ([email protected])
8.1 HIGH — CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L
CVSS 2.0 ([email protected])
6.8 MEDIUM — AV:N/AC:M/Au:N/C:P/I:P/A:P
Weaknesses
CWE-94

Description

Handlebars before 3.0.8 and 4.x before 4.5.3 is vulnerable to Arbitrary Code Execution. The lookup helper fails to properly validate templates, allowing attackers to submit templates that execute arbitrary JavaScript. This can be used to run arbitrary code on a server processing Handlebars templates or in a victim's browser (effectively serving as XSS).

Affected configurations

• handlebarsjs handlebars (< 3.0.8) • handlebarsjs handlebars (>= 4.0.0 < 4.5.3)

Related

Weakness · CWE (1)

  • CWE-94 Improper Control of Generation of Code weakness

References