Skip to main content
Public proof of conceptFix available

CVE-2021-23369

A public proof of concept exists; no exploitation attested.

  • Published2021-04-12
  • Fixed in4.7.7

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2021-04-1214:15CVE publishedNVD

Versions per branch

NVD · OSV
Handlebarsjs handlebars
BranchAffectedFixed in
4.7< 4.7.74.7.7

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As snyk, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • handlebars
    Affected
    • < 4.7.7fixed in 4.7.7custom

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2021-06-04

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • @rootio/handlebarsRoot:npmall versions · fixed in 3.0.8-root.io.2
  • @rootio/handlebarsRoot:npmall versions · fixed in 3.0.3-root.io.2
  • @rootio/handlebarsRoot:npmall versions · fixed in 3.0.7-root.io.3
  • @rootio/handlebarsRoot:npmall versions · fixed in 4.7.7-root.io.1
  • @rootio/handlebarsRoot:npmall versions · fixed in 4.7.7-root.io.2
  • @rootio/handlebarsRoot:npmall versions · fixed in 4.7.7-root.io.3
  • @rootio/handlebarsRoot:npmall versions · fixed in 4.7.7-root.io.4
  • @rootio/handlebarsRoot:npmall versions · fixed in 4.7.7-root.io.5

25 more package ranges on OSV.dev

Vendor advisories

  • CVE-2021-23369 Red Hat Product Security10 products fixed · 27 known affected

    nodejs-handlebars: Remote code execution when compiling untrusted compile templates with strict:true option

    servicemesh-grafana as a component of OpenShift Service Mesh 2.0 · servicemesh-grafana-prometheus as a component of OpenShift Service Mesh 2.0 · servicemesh-grafana.src as a component of OpenShift Service Mesh 2.0 · +24 more

  • RHSA-2023:1334 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Process Automation Manager 7.13.2 security update

  • RHSA-2021:4032 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: Openshift Logging 5.2.3 bug fix and security update

  • RHSA-2021:4628 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: Openshift Logging 5.1.4 bug fix and security update

  • RHSA-2021:2500 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: Red Hat OpenShift Enterprise security and bug fix update

Full record on NVD

Fix

  1. Update Handlebarsjs handlebars to 4.7.7
  2. Vendor fix Red Hat Product Security RHSA-2023:1334 · 1 productFor on-premise installations, before applying the update, back up your existing installation including all applications, configuration files, databases and database settings, and so on. Red Hat recommends that you halt the server by stopping the JBoss Application Server process before installing t…
  3. Vendor fix Red Hat Product Security RHSA-2021:4032 · 3 productsFor OpenShift Container Platform 4.9 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this errata update: https://docs.openshift.com/container-platform/4.9/release_notes/ocp-4-9-release-notes.…
  4. Vendor fix Red Hat Product Security RHSA-2021:4628 · 3 productsFor OpenShift Container Platform 4.8 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this errata update: https://docs.openshift.com/container-platform/4.8/release_notes/ocp-4-8-release-notes.…
  5. Vendor fix Red Hat Product Security RHSA-2021:2500 · 3 productsFor OpenShift Container Platform 4.6 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.6/release_notes/ocp-4-6-r…
  6. No fix available, says the vendor Red Hat Product Security CVE-2021-23369 · 8 productsFix deferred
  7. No fix available, says the vendor Red Hat Product Security CVE-2021-23369 · 6 productsAffected

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2021-04-12
Last modified
2026-10-08
NVD status
Modified
GitHub advisory
GHSA-f2jv-r9rf-7988

Frequently asked questions

What is CVE-2021-23369?

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.

Is CVE-2021-23369 actively exploited?

Active exploitation of CVE-2021-23369 has not been confirmed. Its EPSS score was 7.0% on 2026-12-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-23369?

CVE-2021-23369 has a CVSS v3 base score of 9.8 (Critical severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running handlebars? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record