cve.bz

CVE-2021-23369 handlebarsjs handlebars

9.8 criticalExploit referenceEPSS 7.0%Fix available

Critical (9.8) in handlebarsjs handlebars. EPSS 7.0% estimated probability of exploitation activity in the next 30 days. Fixed in handlebars 4.7.7.

On this page
The package handlebars before 4.7.7 are vulnerable to Remote Code Execution (RCE) when selecting certain compiling options to compile templates coming from an untrusted source.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
7.0% (unchanged from 7.0% a week ago; 7.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th 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: total, 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.
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-2021-23369 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-23369?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-23369?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-2021-23369 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-2021-23369

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-2021-23369](https://cve.bz/cve/badge/CVE-2021-23369.svg)](https://cve.bz/cve/CVE-2021-23369)

HTML:

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

Affected

Versions

From the NVD's CPE matches.

ProductAffected
handlebarsjs:handlebarsbefore 4.7.7

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-f2jv-r9rf-7988npmhandlebars<4.7.74.7.7
GHSA-f2jv-r9rf-7988Mavenorg.webjars:handlebars<4.7.74.7.7
GHSA-f2jv-r9rf-7988Mavenorg.webjars.npm:handlebars<4.7.74.7.7
GHSA-f2jv-r9rf-7988Mavenorg.webjars.bowergithub.wycats:handlebars.js<4.7.74.7.7

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14node-handlebars3:4.7.6+~4.1.0-2DEBIAN-CVE-2021-23369
Ubuntu18.04:LTS, 20.04:LTSnode-handlebarsno fix listedUBUNTU-CVE-2021-23369

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

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

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.

In OpenShift Container Platform (OCP), OpenShift ServiceMesh (OSSM) and Red Hat Advanced Cluster Management for Kubernetes (RHACM) some components include the vulnerable handlebars library, but access is protected by OpenShift OAuth what reducing impact by this flaw to LOW.

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

Red Hat Gluster Storage 3 bundles vulnerable Handlebars.js (with pcs), however it does not use "strict" option and templates from external sources, hence this issue has been rated as having a security impact of Low.

In Red Hat Virtualization ovirt-engine-ui-extensions and ovirt-web-ui Handlebars.js is included as a dependency of conventional-changelog-writer, it does not impact production code and as such has been given a low impact rating and set to wontfix. Handlebars.js may be updated to a newer version in future updates.

ProductPackageStateAdvisory
OpenShift Logging 5.1openshift-logging/kibana6-rhel8:v6.8.1-48Fixed 2021-11-17RHSA-2021:4628
OpenShift Logging 5.2openshift-logging/kibana6-rhel8:v6.8.1-47Fixed 2021-11-17RHSA-2021:4032
Red Hat OpenShift Container Platform 4.6openshift4/ose-logging-kibana6:v4.6.0-202106181629.p0.git.40f3e72Fixed 2021-06-29RHSA-2021:2500
RHPAM 7.13.1 asynchandlebarsFixed 2023-03-20RHSA-2023:1334
OpenShift Service Mesh 2.0servicemesh-grafanaAffected
OpenShift Service Mesh 2.0servicemesh-prometheusAffected
Red Hat 3scale API Management Platform 2nodejs-handlebarsWill not fix
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/application-ui-rhel8Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/console-header-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/console-ui-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/grc-ui-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/kui-web-terminal-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/mcm-topology-rhel8Not affected
Red Hat Enterprise Linux 6pcsOut of support scope
Red Hat Enterprise Linux 7pcsOut of support scope
Red Hat Enterprise Linux 8pcsFix deferred
Red Hat Enterprise Linux 9pcsNot affected
Red Hat OpenShift Container Platform 3.11kibanaFix deferred
Red Hat OpenShift Container Platform 4kibanaWill not fix
Red Hat Quay 3quay/quay-rhel8Fix deferred
3 more in the JSON and on Red Hat's page.

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-2021-23369.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

References

Check your stackJSON