cve.bz

CVE-2019-20920 handlebarsjs handlebars: Code Injection

8.1 highExploit referenceEPSS 3.0%Fix available

High (8.1) in handlebarsjs handlebars. EPSS 3.0% estimated probability of exploitation activity in the next 30 days. Fixed in handlebars 3.0.8, 4.5.3.

On this page
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).

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L
EPSS
3.0% (unchanged from 3.2% a week ago; 3.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-20920 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-20920?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-20920?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-20920 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2019-20920

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2019-20920](https://cve.bz/cve/badge/CVE-2019-20920.svg)](https://cve.bz/cve/CVE-2019-20920)

HTML:

<a href="https://cve.bz/cve/CVE-2019-20920"><img src="https://cve.bz/cve/badge/CVE-2019-20920.svg" alt="CVE-2019-20920"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
handlebarsjs:handlebarsbefore 3.0.8
handlebarsjs:handlebarsfrom 4.0.0 before 4.5.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-3cqr-58rm-57f8npmhandlebars<3.0.83.0.8
GHSA-3cqr-58rm-57f8npmhandlebars>=4.0.0 <4.5.34.5.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14node-handlebars3:4.5.3-1DEBIAN-CVE-2019-20920
Ubuntu18.04:LTSnode-handlebarsno fix listedUBUNTU-CVE-2019-20920
Red Hatrhev_manager:4.4:el8ovirt-web-ui0:1.6.5-1.el8evRHSA-2020:5179
Red Hatrhev_manager:4.4:el8rhvm, ovirt-engine, ovirt-engine-setup and 17 more0:4.4.3.8-0.1.el8evRHSA-2020:5179

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Quay includes Handlebars.js as a development dependency. It does not use Handlebars.js at runtime to process templates, so it has been given a low impact rating.

Red Hat Virtualization includes Handlebars.js in two components. In ovirt-engine-ui-extentions, the version used is newer and is not affected by this flaw. In ovirt-web-ui, Handlebars.js is included as a development dependency and is not used at runtime to process templates, so it has been given a low impact rating.

Red Hat OpenShift Container Platform (OCP) 4 delivers the kibana package, which includes Handlebars.js. From OCP 4.6, the kibana package is no longer shipped and will not be fixed. The openshift4/ose-logging-kibana6 container includes Handlebars.js directly as container first code. The vulnerable version of Handlebars.js is also included in openshift4/ose-grafana, but as the Grafana instance is in read-only mode, the configuration/dashboards cannot be modified.

ProductPackageStateAdvisory
Red Hat OpenShift Container Platform 4.6openshift4/ose-logging-kibana6:v4.6.0-202106181629.p0.git.40f3e72Fixed 2021-06-29RHSA-2021:2500
Red Hat Quay 3quay/quay-rhel8:v3.6.0-62Fixed 2021-10-19RHSA-2021:3917
Red Hat Virtualization Engine 4.4ovirt-web-ui-0:1.6.5-1.el8evFixed 2020-11-24RHSA-2020:5179
RHPAM 7.13.1 asynchandlebarsFixed 2023-03-20RHSA-2023:1334
OpenShift Service Mesh 1kialiNot affected
OpenShift Service Mesh 1servicemesh-grafanaWill not fix
Red Hat Advanced Cluster Management for Kubernetes 2handlebarsNot affected
Red Hat OpenShift Container Platform 3.11kibanaWill not fix
Red Hat OpenShift Container Platform 3.11openshift3/grafanaWill not fix
Red Hat OpenShift Container Platform 4kibanaWill not fix
Red Hat OpenShift Container Platform 4openshift4/ose-grafanaWill not fix
Red Hat Virtualization 4ovirt-engine-ui-extensionsNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-20920.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON