Skip to content
OpenAdvisories
High GHSA-g9r4-xpmj-mj65

Prototype Pollution in handlebars

Published Sep 4, 2020 · Updated Sep 10, 2026 · Assigned by GHSA

Description

Versions of `handlebars` prior to 3.0.8 or 4.5.3 are vulnerable to prototype pollution. It is possible to add or modify properties to the Object prototype through a malicious template. This may allow attackers to crash the application or execute Arbitrary Code in specific conditions.

## Recommendation

Upgrade to version 3.0.8, 4.5.3 or later.

Affected packages

EcosystemPackageAffectedFixedRecord
npm handlebars < 3.0.8 3.0.8 GHSA-g9r4-xpmj-mj65
npm handlebars >= 4.0.0, < 4.5.3 4.5.3 GHSA-g9r4-xpmj-mj65

References