CVE-2021-23383: Prototype Pollution

Published Apr 12, 2021
·
Updated

A flaw was found in nodejs-handlebars. A unescaped value in the JavaScriptCompiler.prototype.depthedLookup 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 compat: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 Prototype Pollution when selecting certain compiling options to compile templates coming from an untrusted source.

The package handlebars before 4.7.7 are vulnerable to Remote Code Execution (RCE) when using compat compile option to compile templates coming from an untrusted source.

Upstream patch: https://github.com/handlebars-lang/handlebars.js/commit/f0589701698268578199be25285b2ebea1c1e427

Red Hat

Affected Software

4 affected componentsFixes available
redhat/handlebars<4.7.7
4.7.7
npm/handlebars<4.7.7
4.7.7
Handlebarsjs Handlebars Node.js<4.7.7
NetApp E-series Performance Analyzer

Event History

Apr 12, 2021
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
May 4, 2021
CVE Published
via MITRE·08:35 AM
Data Sourced
via MITRE·08:35 AM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·08:44 AM
DescriptionSeverityAffected Software
Feb 10, 2022
Advisory Published
via GitHub·11:51 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-23383.

2

What is the severity level of CVE-2021-23383?

The severity level of CVE-2021-23383 is critical.

3

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

The affected software for CVE-2021-23383 includes the package handlebars before version 4.7.7 and Handlebarsjs Handlebars up to version 4.7.7.

4

How can an attacker exploit this vulnerability?

An attacker can exploit this vulnerability by providing untrusted handlebars templates, allowing them to execute arbitrary code in the javascript system.

5

Are there any available fixes for CVE-2021-23383?

Yes, the fix for CVE-2021-23383 is to upgrade to version 4.7.7 of the handlebars package.

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