Prototype Pollution in handlebars
Priority LOW 38CWE-471Published · Updated
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
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.
Why it matters now
Fix Fixed handlebars (npm): 4.1.2, 4.0.14, 3.0.7
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | handlebars (npm) | 4.1.0 to before 4.1.2 | 4.1.2 | Patch available | GHSA-q42p-pg8m-cqh6 |
| — | handlebars (npm) | 4.0.0 to before 4.0.14 | 4.0.14 | Patch available | GHSA-q42p-pg8m-cqh6 |
| — | handlebars (npm) | before 3.0.7 | 3.0.7 | Patch available | GHSA-q42p-pg8m-cqh6 |
- handlebars (npm) Vendor— Affected 4.1.0 to before 4.1.2 Fixed in 4.1.2 Patch available GHSA-q42p-pg8m-cqh6
- handlebars (npm) Vendor— Affected 4.0.0 to before 4.0.14 Fixed in 4.0.14 Patch available GHSA-q42p-pg8m-cqh6
- handlebars (npm) Vendor— Affected before 3.0.7 Fixed in 3.0.7 Patch available GHSA-q42p-pg8m-cqh6
Remediation
- Fix · GHSA-q42p-pg8m-cqh6 handlebars (npm) Fixed in 4.1.2 Advisory →
- Fix · GHSA-q42p-pg8m-cqh6 handlebars (npm) Fixed in 4.0.14 Advisory →
- Fix · GHSA-q42p-pg8m-cqh6 handlebars (npm) Fixed in 3.0.7 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-q42p-pg8m-cqh6
References
Other 6
- https://github.com/handlebars-lang/handlebars.js/issues/1495
- https://github.com/handlebars-lang/handlebars.js/commit/0d6d8c335ad81bad1b672fc56b6a44f6aa472dac
- https://github.com/handlebars-lang/handlebars.js/commit/7372d4e9dffc9d70c09671aa28b9392a1577fd86
- https://github.com/handlebars-lang/handlebars.js/commit/85c8783b34fc6d36145d8b53885ad0b9e3c3f9c4
- https://github.com/handlebars-lang/handlebars.js/commit/cd38583216dce3252831916323202749431c773e
- https://www.npmjs.com/advisories/755
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences