CVE-2026-33916 Handlebars.js has Prototype Pollution Leading to XSS through Partial Template Injection
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
Description
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.
Upgrade path
30 packages: 3 fixed, 26 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| cbl-mariner reaper(CBL-Mariner 2.0) | All versions | No fix listed | No fix yet |
| debian/node-handlebars(Debian 12) | = 3:4.7.7+~4.1.0-1; = 3:4.7.9-1; = 3:4.7.9-2; = 3:4.7.9-3 +5 more | No fix listed | No fix yet |
| debian/node-handlebars(Debian 13) | = 3:4.7.7+~4.1.0-1; = 3:4.7.9-1; = 3:4.7.9-2; = 3:4.7.9-3 +5 more | No fix listed | No fix yet |
| redhat/devspaces/code-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| redhat/firefox(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/firefox(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/firefox(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/firefox(Red Hat rhel_els 7) | All versions | No fix listed | No fix yet |
| redhat/handlebars(Red Hat cryostat 4) | All versions | No fix listed | No fix yet |
| redhat/handlebars(Red Hat jboss_bpms 7) | All versions | No fix listed | No fix yet |
| redhat/handlebars(Red Hat jboss_data_grid 8) | All versions | No fix listed | No fix yet |
| redhat/mozjs60(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/openshift-logging/elasticsearch-operator-bundle(Red Hat logging 5) | All versions | No fix listed | No fix yet |
| redhat/openshift-logging/elasticsearch-proxy-rhel9(Red Hat logging 5) | All versions | No fix listed | No fix yet |
| redhat/openshift-logging/elasticsearch-rhel9-operator(Red Hat logging 5) | All versions | No fix listed | No fix yet |
| redhat/openshift-logging/elasticsearch6-rhel9(Red Hat logging 5) | All versions | No fix listed | No fix yet |
| redhat/openshift-logging/kibana6-rhel8(Red Hat logging 5) | All versions | No fix listed | No fix yet |
| redhat/openshift-logging/logging-curator5-rhel9(Red Hat logging 5) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/thunderbird(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/thunderbird(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/thunderbird(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| ubuntu/node-handlebars(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-handlebars(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-handlebars(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-handlebars(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/node-handlebars(Debian 14) | < 3:4.7.9-1; = 3:4.7.7+~4.1.0-1 | 3:4.7.9-1 | Fixed |
| handlebarsjs handlebars | >= 4.0.0, < 4.7.9 | 4.7.9 | Fixed |
| npm handlebars(npm) | >= 4.0.0, < 4.7.9 | 4.7.9 | Fixed |
| handlebars-lang handlebars.js | = >= 4.0.0, < 4.7.9 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cbl-mariner reaper(CBL-Mariner:2.0) | All versions | No fix listed |
| handlebars-lang handlebars.js | = >= 4.0.0, < 4.7.9 | No fix listed |
| npm handlebars(npm) | >= 4.0.0, < 4.7.9 | 4.7.9 |
| debian/node-handlebars(Debian:12) | All versions | No fix listed |
| debian/node-handlebars(Debian:12) | = 3:4.7.10-1 | No fix listed |
| debian/node-handlebars(Debian:12) | = 3:4.7.7+~4.1.0-1 | No fix listed |
| debian/node-handlebars(Debian:12) | = 3:4.7.9-1 | No fix listed |
| debian/node-handlebars(Debian:12) | = 3:4.7.9-2 | No fix listed |
| debian/node-handlebars(Debian:12) | = 3:4.7.9-3 | No fix listed |
| debian/node-handlebars(Debian:12) | = 3:4.7.9-4 | No fix listed |
| debian/node-handlebars(Debian:12) | = 3:4.7.9-5 | No fix listed |
| debian/node-handlebars(Debian:12) | = 3:4.7.9-6 | No fix listed |
| debian/node-handlebars(Debian:13) | All versions | No fix listed |
| debian/node-handlebars(Debian:13) | = 3:4.7.10-1 | No fix listed |
| debian/node-handlebars(Debian:13) | = 3:4.7.7+~4.1.0-1 | No fix listed |
| debian/node-handlebars(Debian:13) | = 3:4.7.9-1 | No fix listed |
| debian/node-handlebars(Debian:13) | = 3:4.7.9-2 | No fix listed |
| debian/node-handlebars(Debian:13) | = 3:4.7.9-3 | No fix listed |
| debian/node-handlebars(Debian:13) | = 3:4.7.9-4 | No fix listed |
| debian/node-handlebars(Debian:13) | = 3:4.7.9-5 | No fix listed |
| debian/node-handlebars(Debian:13) | = 3:4.7.9-6 | No fix listed |
| debian/node-handlebars(Debian:14) | < 3:4.7.9-1 | 3:4.7.9-1 |
| debian/node-handlebars(Debian:14) | = 3:4.7.7+~4.1.0-1 | No fix listed |
| redhat/handlebars(Red Hat:cryostat:4) | All versions | No fix listed |
| redhat/openshift-logging/elasticsearch6-rhel9(Red Hat:logging:5) | All versions | No fix listed |
Show 24 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/openshift-logging/elasticsearch-operator-bundle(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/elasticsearch-proxy-rhel9(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/elasticsearch-rhel9-operator(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/kibana6-rhel8(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/logging-curator5-rhel9(Red Hat:logging:5) | All versions | No fix listed |
| redhat/handlebars(Red Hat:jboss_data_grid:8) | All versions | No fix listed |
| redhat/firefox(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/thunderbird(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/firefox(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/389-ds:1.4/389-ds-base(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/firefox(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/grafana(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/mozjs60(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/thunderbird(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/firefox(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/thunderbird(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/devspaces/code-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| redhat/handlebars(Red Hat:jboss_bpms:7) | All versions | No fix listed |
| ubuntu/node-handlebars(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/node-handlebars(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/node-handlebars(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/node-handlebars(Ubuntu:26.10) | All versions | No fix listed |
| handlebarsjs handlebars | >= 4.0.0, < 4.7.9 | 4.7.9 |
References
- MSRC Security Update Guide vendor-advisory
- https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-2qvq-rjwj-gvw9 exploit vendor-advisory
- https://github.com/handlebars-lang/handlebars.js/commit/68d8df5a88e0a26fe9e6084c5c6aaebe67b07da2 patch
- https://github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.9 release-notes
- nvd.nist.gov third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- Debian Security Tracker CVE-2026-33916 vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2452509 issue-tracking
- www.cve.org
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- github.com product