Arbitrary Code Injection Affecting node-handlebars package, versions <3:4.5.3-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
3.19% (87th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-NODEHANDLEBARS-20557228
  • published7 Oct 2026
  • disclosed30 Sept 2020

Introduced: 30 Sep 2020

CVE-2019-20920  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade Echo:latest node-handlebars to version 3:4.5.3-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-handlebars package and not the node-handlebars package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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).

CVSS Base Scores

version 3.1