CVEfocus › CVE database › CVE-2021-23369

CVE-2021-23369Remote Code Execution (RCE)

CVSS 5.6 MediumEPSS 7.0% (higher than 95% of CVEs)Published 2021-04-12Updated 2026-10-08Assigner: snyk

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.

What to do

Fixed builds are available from Debian, Maven, npm: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fixed
4Fix pending
4Will not fix
6Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04node-handlebarsNot affected
vulnerable_code_not_present
Ubuntu 25.10node-handlebarsNot affected
vulnerable_code_not_present
Ubuntu 24.04node-handlebarsNot affected
vulnerable_code_not_present
Ubuntu 22.04node-handlebarsNot affected
vulnerable_code_not_present
Ubuntu 20.04node-handlebarsFix pendingUBUNTU-CVE-2021-23369
Ubuntu 18.04node-handlebarsFix pendingUBUNTU-CVE-2021-23369
Debian 14node-handlebarsFixed3:4.7.6+~4.1.0-2DEBIAN-CVE-2021-23369
Debian 13node-handlebarsFixed3:4.7.6+~4.1.0-2DEBIAN-CVE-2021-23369
Debian 12node-handlebarsFixed3:4.7.6+~4.1.0-2DEBIAN-CVE-2021-23369
Red Hat Enterprise Linux 9pcsNot affected
Red Hat Enterprise Linux 9pcs-snmpNot affected
Red Hat Enterprise Linux 8pcsFix pending
Fix deferred
Red Hat Enterprise Linux 8pcs-snmpFix pending
Fix deferred
Red Hat Enterprise Linux 7pcsWill not fix
Out of support scope
Red Hat Enterprise Linux 7pcs-snmpWill not fix
Out of support scope
Red Hat Enterprise Linux 7python-clufterWill not fix
Out of support scope
Red Hat Enterprise Linux 6pcsWill not fix
Out of support scope
npm libraryhandlebarsFixed4.7.7GHSA-f2jv-r9rf-7988
Maven libraryorg.webjars.bowergithub.wycats:handlebars.jsFixed4.7.7GHSA-f2jv-r9rf-7988
Maven libraryorg.webjars.npm:handlebarsFixed4.7.7GHSA-f2jv-r9rf-7988
Maven libraryorg.webjars:handlebarsFixed4.7.7GHSA-f2jv-r9rf-7988

What the vendor says

As published in the CVE record by snyk, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.