CVE-2021-23369: Remote Code Execution (RCE)

Published Apr 12, 2021
·
Updated

A flaw was found in nodejs-handlebars. A missing check when getting prototype properties in the template function allows an attacker, who can provide untrusted handlebars templates, to execute arbitrary code in the javascript system (e.g. browser or server) when the template is compiled with the strict:true option. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

Other sources

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 Software

6 affected componentsFixes available
maven/org.webjars.bowergithub.wycats:handlebars.js<4.7.7
4.7.7
maven/org.webjars.npm:handlebars<4.7.7
4.7.7
maven/org.webjars:handlebars<4.7.7
4.7.7
npm/handlebars<4.7.7
4.7.7
redhat/handlebars<4.7.7
4.7.7
Handlebarsjs Handlebars Node.js<4.7.7

Event History

Apr 12, 2021
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·01:10 PM
Data Sourced
via MITRE·01:10 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:15 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Red Hat·08:52 PM
DescriptionSeverityAffected Software
May 6, 2021
Advisory Published
03:57 PM

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID for this issue?

The vulnerability ID for this issue is CVE-2021-23369.

2

What is the severity of CVE-2021-23369?

CVE-2021-23369 has a severity score of 9.8 (Critical).

3

What is the affected software for CVE-2021-23369?

The affected software for CVE-2021-23369 is handlebars version up to 4.7.7.

4

How can an attacker exploit CVE-2021-23369?

An attacker can exploit CVE-2021-23369 by providing untrusted handlebars templates, which allows them to execute arbitrary code in the JavaScript system when the template is compiled with the vulnerable handlebars version.

5

How can I fix CVE-2021-23369?

To fix CVE-2021-23369, update handlebars to version 4.7.7.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203