PT-2021-4090 · Unknown · Handlebars

Francois Lajeunesse-Robert

·

Published

2021-01-08

·

Updated

2022-02-10

·

CVE-2021-23383

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Handlebars versions prior to 4.7.7
Description The issue is related to errors in code generation management in the Handlebars template creation tool. It can be exploited by a remote attacker to gain access to confidential data, compromise data integrity, and cause a denial of service. The vulnerability is specifically related to Prototype Pollution when certain compiling options are selected to compile templates from an untrusted source.
Recommendations For versions prior to 4.7.7, update to version 4.7.7 or later to resolve the issue. As a temporary workaround, consider restricting the use of untrusted templates and certain compiling options to minimize the risk of exploitation. Avoid using the Handlebars package with untrusted input until the issue is resolved.

Exploit

Fix

Code Injection

Prototype Pollution

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2021-04669
CVE-2021-23383
GHSA-765H-QJXV-5F44
OESA-2021-1196
SNYK-JAVA-ORGWEBJARS-1279031
SNYK-JAVA-ORGWEBJARSBOWER-1279032
SNYK-JAVA-ORGWEBJARSNPM-1279030
SNYK-JS-HANDLEBARS-1279029

Affected Products

Handlebars