Vulnerability
CVE-2026-33916
Handlebars provides the power necessary to let users build semantic templates. In versions 4.0.0 through 4.7.8, `resolvePartial()` in the Handlebars runtime resolves partial names via a plain property lookup on `options.partials` without guarding against prototype-chain traversal. When `Object.prototype` has been polluted with a string value whose key matches a partial reference in a template, the polluted string is used as the partial body and rendered without HTML escaping, resulting in reflected or stored XSS. Version 4.7.9 fixes the issue. Some workarounds are available. Apply `Object.freeze(Object.prototype)` early in application startup to prevent prototype pollution. Note: this may break other libraries, and/or use the Handlebars runtime-only build (`handlebars/runtime`), which does not compile templates and reduces the attack surface.
127 advisories report this vulnerability, across 6 ecosystems.
Advisories in Wolfi
- CGA-238w-3v2j-jm65
- CGA-34m4-88gh-p7mg
- CGA-3xjf-4hqq-h7q8
- CGA-6xjx-rqqf-76j9
- CGA-778c-jhv5-7wm8
- CGA-7hhq-63f9-vvwx
- CGA-8mvv-qgpp-634h
- CGA-9hxh-4fxg-xfm7
- CGA-9j86-35rf-vp8x
- CGA-cwvc-4qwg-vhjq
- CGA-f4ff-454q-r9wj
- CGA-j6gh-52hj-gwvm
- CGA-m2x5-gvwv-gpcp
- CGA-mh33-p8rh-97rf
- CGA-pqm8-3xc6-f5p6
- CGA-q2r6-qvg6-r35w
- CGA-v6vc-8xrv-2p9m
- CGA-v6x2-rv9g-g5vx
- CGA-vj6q-5p7q-rr3p
- CGA-w9c6-v9f6-79mf
- CGA-wmxr-58jx-3cw4