# CVE-2026-33916: Handlebars.js has Prototype Pollution Leading to XSS through Partial Template Injection

- Priority: **Routine**
- Reason: Not severe (CVSS 4.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-03-27 · Modified: 2026-03-30
- Aliases: UBUNTU-CVE-2026-33916, DEBIAN-CVE-2026-33916, 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-h2pc-wvwq-r9p5, CGA-j6gh-52hj-gwvm, CGA-m2x5-gvwv-gpcp, CGA-mh33-p8rh-97rf, CGA-pqm8-3xc6-f5p6, CGA-q2r6-qvg6-r35w, CGA-q4w5-9gq2-q5fg, CGA-v6vc-8xrv-2p9m, CGA-v6x2-rv9g-g5vx, CGA-vj6q-5p7q-rr3p, CGA-w9c6-v9f6-79mf, CGA-wmxr-58jx-3cw4, GHSA-2qvq-rjwj-gvw9, CGA-225f-qh65-p7cx, CGA-2gh8-wc82-jj74, CGA-2q5m-52p5-ph3f, CGA-33rf-7r9r-pmq5, CGA-36fv-m4f8-8qw8, CGA-39mj-34cg-45j2, CGA-3jv5-3q7x-qw4f, CGA-3m95-53x2-qq7x, CGA-3mvx-cp47-6gfc, CGA-3q85-c5c2-vm62, CGA-3r2q-c557-6x4x, CGA-3v87-7m3g-8rch, CGA-3wwp-447w-jfjq, CGA-46q2-qxwm-pp62, CGA-48mq-x9w5-hm74, CGA-492j-vwg7-577r, CGA-539c-vg92-wrjg, CGA-5hhr-w64r-22rc, CGA-5vpm-xgcc-v369, CGA-635m-5m32-f3mv, CGA-638v-8xh3-qxc2, CGA-646v-67mq-87mr, CGA-6f29-pwmv-r498, CGA-6gxx-cfxw-pc96, CGA-6q3w-96pm-78jc, CGA-6rmv-84x3-mcjh, CGA-6vr8-wjq3-m7wp, CGA-78f6-gwwf-g6ff, CGA-793c-577h-27w3, CGA-7f2j-4vm2-5wgh, CGA-7vc6-gjwv-mfmq, CGA-8257-89jf-5588, CGA-828x-47hf-2436, CGA-84jh-hv2j-jjvq, CGA-8ccj-22jq-9qcf, CGA-8j6f-99hq-cwvm, CGA-952w-q449-jg3j, CGA-96gr-9gf7-6rv7, CGA-9jvw-qqwg-cg4j, CGA-9mmc-cf4q-5h52, CGA-9pwh-448c-4v85, CGA-c3rw-j6qr-68h4, CGA-c5j3-r92j-9qf9, CGA-chpx-hmvh-5jg7, CGA-cjj7-fj5v-qmxq, CGA-cjpg-95m5-vx2p, CGA-cv47-8cg8-2mmj, CGA-f2f7-jgg5-x767, CGA-f38q-4m5r-wfp7, CGA-ff65-4623-ccwq, CGA-ffrx-qm9v-pmvx, CGA-fq2v-wq54-56hg, CGA-fqgj-v636-f342, CGA-g3rx-j4cw-jq3p, CGA-g4w8-ccq2-6m3q, CGA-g5fc-5j7f-8q22, CGA-gqhw-rr53-89pp, CGA-h38g-vc8h-6w4h, CGA-h4c8-fcfw-gvjr, CGA-j348-g7p7-9r7f, CGA-j8x3-7r3f-g66x, CGA-jcrc-rr2q-hfwh, CGA-m53m-4vp9-9ffh, CGA-m6fr-7fxw-vg3g, CGA-m7wc-qxhj-v6c9, CGA-m8rm-c34w-3332, CGA-mrmw-6757-pr2w, CGA-mv8q-f57x-xjg8, CGA-p3q2-c4v2-55pj, CGA-pf34-9fhj-32mp, CGA-pj29-p476-rwcx, CGA-pq76-6c3r-m36p, CGA-pr7v-m825-mmcp, CGA-q298-2rxh-7j6p, CGA-q67x-q9pg-x5vv, CGA-qfc8-7rj4-9w9p, CGA-qfpv-pp2r-93fm, CGA-qhmf-68cw-5rp6, CGA-qphw-qgqj-6j8f, CGA-r2rg-xjpm-qv9p, CGA-r3fv-j3w8-2g97, CGA-r443-8p2f-x99p, CGA-r62v-gh3m-fgp5, CGA-r6rg-7qx9-c8h6, CGA-rj7w-q43v-99xq, CGA-rqq6-4w58-rf8v, CGA-rwm6-qm9r-8w67, CGA-vcq5-hv28-mxh2, CGA-vj28-vc28-85f7, CGA-vp48-x54g-68w4, CGA-w28q-qc3v-rvc8, CGA-wj2x-78p4-q847, CGA-wm95-rh23-hm8j, CGA-x4x2-pf2f-55w7, CGA-x5jw-fv95-xf29, CGA-x789-x2rg-2cjv, CGA-x8c3-ccqc-vfjr, CGA-xcmq-vm6j-7v7m, CGA-xhhv-pfv2-27wj, CGA-xr6p-957w-g7g3
- Record: https://cvemate.com/vulnerability/CVE-2026-33916 · JSON: https://cvemate.com/vulnerability/CVE-2026-33916/json

## Description

```text
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.
```

## Signals

- CVSS: 4.7 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.286%, percentile 22.651%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 80)

- chainguard gitlab-rails-ce-18.1 (Chainguard): \< 18.1.6-r14
- chainguard gitlab-rails-ce-18.10 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.11 (Chainguard): \< 18.11.6-r2
- chainguard gitlab-rails-ce-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.0 (Chainguard): \< 19.0.3-r1
- chainguard gitlab-rails-ce-19.1 (Chainguard): \< 19.1.1-r6
- chainguard gitlab-rails-ce-assets-fips-19.4 (Chainguard): \< 19.4.0-r2
- chainguard gitlab-rails-ce-fips-18.1 (Chainguard): \< 18.1.6-r15
- chainguard gitlab-rails-ce-fips-18.10 (Chainguard): \< 18.10.8-r8
- chainguard gitlab-rails-ce-fips-18.11 (Chainguard): \< 18.11.6-r1
- chainguard gitlab-rails-ce-fips-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.9 (Chainguard): \< 18.9.8-r8
- chainguard gitlab-rails-ce-fips-19.0 (Chainguard): \< 19.0.3-r1

## References

- <https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-2qvq-rjwj-gvw9>
- <https://github.com/handlebars-lang/handlebars.js/commit/68d8df5a88e0a26fe9e6084c5c6aaebe67b07da2>
- <https://github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.9>
- <https://ubuntu.com/security/CVE-2026-33916>
- <https://www.cve.org/CVERecord?id=CVE-2026-33916>
- <https://security-tracker.debian.org/tracker/CVE-2026-33916>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33916.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33916>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23369>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23383>
- <https://github.com/handlebars-lang/handlebars.js>

---

Data as of 2026-12-05T08:38:31.860Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
