Skip to content
OpenAdvisories
High · 7.3 GHSA-q42p-pg8m-cqh6

Prototype Pollution in handlebars

Published Jun 5, 2019 · Updated Sep 10, 2026 · Assigned by GHSA

Description

Versions of `handlebars` prior to 4.0.14 are vulnerable to Prototype Pollution. Templates may alter an Objects' prototype, thus allowing an attacker to execute arbitrary code on the server.

## Recommendation

For handlebars 4.1.x upgrade to 4.1.2 or later.
For handlebars 4.0.x upgrade to 4.0.14 or later.

Affected packages

EcosystemPackageAffectedFixedRecord
npm handlebars >= 4.1.0, < 4.1.2 4.1.2 GHSA-q42p-pg8m-cqh6
npm handlebars >= 4.0.0, < 4.0.14 4.0.14 GHSA-q42p-pg8m-cqh6
npm handlebars < 3.0.7 3.0.7 GHSA-q42p-pg8m-cqh6

References