CVEfocus › CVE database › CVE-2026-33916

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

CVSS 4.7 MediumEPSS 0.5% (higher than 36% of CVEs)Published 2026-03-27Updated 2026-03-30Assigner: GitHub_M

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.

CWE-1321CWE-79

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
15Fix pending
3Under investigation
22Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-handlebarsFix pendingUBUNTU-CVE-2026-33916
Ubuntu 26.04node-handlebarsUnder investigationUBUNTU-CVE-2026-33916
Ubuntu 25.10node-handlebarsWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-33916
Ubuntu 24.04node-handlebarsUnder investigationUBUNTU-CVE-2026-33916
Ubuntu 22.04node-handlebarsUnder investigationUBUNTU-CVE-2026-33916
Ubuntu 20.04node-handlebarsFix pendingUBUNTU-CVE-2026-33916
Ubuntu 18.04node-handlebarsFix pendingUBUNTU-CVE-2026-33916
Debian 14node-handlebarsFixed3:4.7.9-1DEBIAN-CVE-2026-33916
Debian 13node-handlebarsFix pendingDEBIAN-CVE-2026-33916
Debian 12node-handlebarsFix pendingDEBIAN-CVE-2026-33916
Red Hat Enterprise Linux 10firefoxFix pending
Fix deferred
Red Hat Enterprise Linux 10thunderbirdFix pending
Fix deferred
Red Hat Enterprise Linux 9firefoxFix pending
Fix deferred
Red Hat Enterprise Linux 9firefox-x11Fix pending
Fix deferred
Red Hat Enterprise Linux 9thunderbirdFix pending
Fix deferred
Red Hat Enterprise Linux 8389-ds-baseWill not fix
Out of support scope
Red Hat Enterprise Linux 8389-ds-base-develWill not fix
Out of support scope
Red Hat Enterprise Linux 8389-ds-base-legacy-toolsWill not fix
Out of support scope
Red Hat Enterprise Linux 8389-ds-base-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 8389-ds-base-snmpWill not fix
Out of support scope
Red Hat Enterprise Linux 8cockpit-389-dsWill not fix
Out of support scope
Red Hat Enterprise Linux 8firefoxFix pending
Fix deferred
Red Hat Enterprise Linux 8grafanaWill not fix
Out of support scope
Red Hat Enterprise Linux 8grafana-azure-monitorWill not fix
Out of support scope
Red Hat Enterprise Linux 8grafana-cloudwatchWill not fix
Out of support scope
Red Hat Enterprise Linux 8grafana-elasticsearchWill not fix
Out of support scope
Red Hat Enterprise Linux 8grafana-graphiteWill not fix
Out of support scope
Red Hat Enterprise Linux 8grafana-influxdbWill not fix
Out of support scope
Red Hat Enterprise Linux 8grafana-lokiWill not fix
Out of support scope
Red Hat Enterprise Linux 8grafana-mssqlWill not fix
Out of support scope
Red Hat Enterprise Linux 8grafana-mysqlWill not fix
Out of support scope
Red Hat Enterprise Linux 8grafana-opentsdbWill not fix
Out of support scope
Red Hat Enterprise Linux 8grafana-postgresWill not fix
Out of support scope
Red Hat Enterprise Linux 8grafana-prometheusWill not fix
Out of support scope
Red Hat Enterprise Linux 8grafana-selinuxWill not fix
Out of support scope
Red Hat Enterprise Linux 8grafana-stackdriverWill not fix
Out of support scope
Red Hat Enterprise Linux 8mozjs60Fix pending
Fix deferred
Red Hat Enterprise Linux 8mozjs60-develFix pending
Fix deferred
Red Hat Enterprise Linux 8python3-lib389Will not fix
Out of support scope
Red Hat Enterprise Linux 8thunderbirdFix pending
Fix deferred
Red Hat Enterprise Linux 7firefoxFix pending
Fix deferred
npm libraryhandlebarsFixed4.7.9GHSA-2qvq-rjwj-gvw9

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.