VDB

CVE-2019-20920

CVE-2019-20920 PUBLISHED CVSS 8.100000381469727 HIGH

Arbitrary Code Execution in Handlebars

Reported by mitre · Published September 30, 2020

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

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
handlebarshandlebarsjs4.5.3, 3.0.8

Risk scores

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

Affected products

VendorProductVersions
n/an/an/a
chainguardgitlab-rails-ce-19.1*
chainguardgitlab-rails-ce-19.2*
chainguardgitlab-rails-ce-fips-18.3*
chainguardgitlab-rails-ce-fips-18.9*
chainguardgitlab-rails-ee-17.3*
chainguardcommercial-gitlab-rails-ee-19.2*
chainguardcode-server*
chainguardgitlab-rails-ce-fips-19.3*
chainguardgitlab-rails-ee-17.7*
chainguardgitlab-rails-ce-18.1*
chainguardgitlab-rails-ce-18.6*
chainguardgitlab-rails-ce-fips-18.7*
chainguardgitlab-rails-ee-17.11*
chainguardgitlab-rails-ce-18.10*
chainguardgitlab-rails-ce-fips-19.2*
chainguardgitlab-rails-ee-17.0*
chainguardgitlab-rails-ce-fips-18.6*
chainguardgitlab-rails-ce-19.0*
n/an/a*

…and 47 more

Timeline

  • Sep 30, 2020 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Apr 4, 2022 CVE Updated
  • Mar 10, 2026 Security Advisory
  • Sep 11, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2019-20920
vulnetix vdb fixes CVE-2019-20920

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-20920/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›