
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability CVE-2021-23383 affects the Handlebars package versions before 4.7.7. This security flaw was discovered on January 8, 2021, and publicly disclosed on May 4, 2021. The vulnerability is present in the templating language extension Handlebars when selecting certain compiling options to compile templates from untrusted sources (CVE Mitre, NVD).
The vulnerability is classified as a Prototype Pollution issue with a CVSS v3.1 base score of 9.8 (Critical). The flaw specifically occurs when compiling templates with certain options, particularly in compatibility mode. The vulnerability allows an attacker to inject properties into existing JavaScript language construct prototypes. A proof of concept demonstrates that when compiling a template in compat mode, an attacker can exploit this vulnerability to execute arbitrary code (Snyk).
The successful exploitation of this vulnerability can lead to multiple severe consequences including disclosure of sensitive information, modification of data, and Denial of Service (DoS). The vulnerability can affect various environments including application servers, web servers, and web browsers. When exploited, it can allow attackers to manipulate object properties and potentially achieve remote code execution (NetApp Security).
The primary mitigation is to upgrade Handlebars to version 4.7.7 or higher. Additional preventive measures include freezing the prototype using Object.freeze(Object.prototype), implementing schema validation for JSON input, avoiding unsafe recursive merge functions, and using objects without prototypes (Object.create(null)). As a best practice, it's recommended to use Map instead of Object (Snyk).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."