Advisory

GHSA-q42p-pg8m-cqh6

Also known as: None

Summary

Prototype Pollution in handlebars

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2019-06-05 14:07 UTC
Modified
2026-09-10 03:48 UTC

Affected packages and fixes

handlebars

npm · All systems

Affected

  • introduced 4.1.0, fixed 4.1.2 (semver)

Fixed versions

4.1.2

Fix

handlebars

npm · All systems

Affected

  • introduced 4.0.0, fixed 4.0.14 (semver)

Fixed versions

4.0.14

Fix

handlebars

npm · All systems

Affected

  • introduced 0, fixed 3.0.7 (semver)

Fixed versions

3.0.7

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences