# GHSA-q42p-pg8m-cqh6: Prototype Pollution in handlebars

- Severity: High 7.3 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2019-06-05T14:07:48.000Z
- Modified: 2026-09-10T03:48:23.648Z
- Weaknesses: CWE-471

## 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.

(As written by GitHub Advisory Database.)

## Affected

- handlebars (npm): from 4.1.0 before 4.1.2; from 4.0.0 before 4.0.14; before 3.0.7

## References

- <https://github.com/handlebars-lang/handlebars.js/issues/1495> (web)
- <https://github.com/handlebars-lang/handlebars.js/commit/0d6d8c335ad81bad1b672fc56b6a44f6aa472dac> (web)
- <https://github.com/handlebars-lang/handlebars.js/commit/7372d4e9dffc9d70c09671aa28b9392a1577fd86> (web)
- <https://github.com/handlebars-lang/handlebars.js/commit/85c8783b34fc6d36145d8b53885ad0b9e3c3f9c4> (web)
- <https://github.com/handlebars-lang/handlebars.js/commit/cd38583216dce3252831916323202749431c773e> (web)
- <https://snyk.io/vuln/SNYK-JS-HANDLEBARS-173692> (web)
- <https://www.npmjs.com/advisories/755> (web)

## Sources

- GitHub Advisory Database: [GHSA-q42p-pg8m-cqh6](https://github.com/advisories/GHSA-q42p-pg8m-cqh6), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/GHSA-q42p-pg8m-cqh6 · Whole record: https://cve.day/GHSA-q42p-pg8m-cqh6.json · Rebuilt by cve.day 2026-11-25T22:56:46.220Z
