Vulnerability · Published Apr 12, 2021 · Assigned by snyk

CVE-2021-23369Remote Code Execution (RCE)

Medium 5.6

In plain English

A medium-severity security flaw in handlebars. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 7.0% (higher than 94% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.6Medium
Exploit odds (30 days)7.0%top 5.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-handlebars3:4.7.6+~4.1.0-2DEBIAN-CVE-2021-23369
Debian:13node-handlebars3:4.7.6+~4.1.0-2DEBIAN-CVE-2021-23369
Debian:14node-handlebars3:4.7.6+~4.1.0-2DEBIAN-CVE-2021-23369
Mavenorg.webjars.bowergithub.wycats:handlebars.js4.7.7GHSA-f2jv-r9rf-7988
Mavenorg.webjars.npm:handlebars4.7.7GHSA-f2jv-r9rf-7988
Mavenorg.webjars:handlebars4.7.7GHSA-f2jv-r9rf-7988
Ubuntu:22.04:LTSnode-handlebarsno fix listedUBUNTU-CVE-2021-23369
npmhandlebars4.7.7GHSA-f2jv-r9rf-7988

Affected products (as reported)

VendorProductVersions
n/a handlebars unspecified – before 4.7.7

References