CVE-2026-33937 Handlebars.js has JavaScript Injection via AST Type Confusion
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
- Technology
- UbuntuDebianRed Hat
Description
Handlebars provides the power necessary to let users build semantic templates. In versions 4.0.0 through 4.7.8, Handlebars.compile() accepts a pre-parsed AST object in addition to a template string. The value field of a NumberLiteral AST node is emitted directly into the generated JavaScript without quoting or sanitization. An attacker who can supply a crafted AST to compile() can therefore inject and execute arbitrary JavaScript, leading to Remote Code Execution on the server. Version 4.7.9 fixes the issue. Some workarounds are available. Validate input type before calling Handlebars.compile(); ensure the argument is always a string, never a plain object or JSON-deserialized value. Use the Handlebars runtime-only build (handlebars/runtime) on the server if templates are pre-compiled at build time; compile() will be unavailable.
Upgrade path
35 packages: 5 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 enterprise linux | = 7; = 8; = 9; = 10 +1 more | No fix listed | No fix yet |
| redhat logging | All versions | No fix listed | No fix yet |
| redhat openshift ai | All versions | No fix listed | No fix yet |
| redhat rhdh | All versions | No fix listed | No fix yet |
| redhat/389-ds:1.4/389-ds-base(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/cluster-observability-operator/logging-console-plugin-pf4-rhel9:1782839279(Red Hat cluster_observability_operator 1.5 el9) | All versions | No fix listed | No fix yet |
| redhat/cluster-observability-operator/logging-console-plugin-pf5-rhel9:1782840539(Red Hat cluster_observability_operator 1.5 el9) | All versions | No fix listed | No fix yet |
| redhat/cluster-observability-operator/troubleshooting-panel-console-plugin-pf6-rhel9:1782839996(Red Hat cluster_observability_operator 1.5 el9) | All versions | No fix listed | No fix yet |
| redhat/devspaces/code-rhel9:1776744110(Red Hat openshift_devspaces 3.27 el9) | 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/rhdh/rhdh-hub-rhel9(Red Hat rhdh 1) | 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.0.0, <= 4.7.8 | 4.7.9 | Fixed |
| redhat cluster observability operator | < 1782839279; < 1782839996; < 1782840539 | 1782839279, 1782839996, 1782840539 | Fixed |
… and 5 more packages.
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 |
| redhat cluster observability operator | < 1782839279 | 1782839279 |
| redhat cluster observability operator | < 1782840539 | 1782840539 |
| redhat cluster observability operator | < 1782839996 | 1782839996 |
| redhat openshift devspaces | < 1776744110 | 1776744110 |
| redhat cryostat | = 4 | No fix listed |
| redhat logging | All versions | No fix listed |
| redhat jboss data grid | = 8 | No fix listed |
| redhat rhdh | All versions | No fix listed |
| redhat enterprise linux | = 10 | No fix listed |
| redhat enterprise linux | All versions | No fix listed |
| redhat enterprise linux | = 7 | No fix listed |
| redhat enterprise linux | = 8 | No fix listed |
| redhat enterprise linux | = 9 | No fix listed |
| redhat openshift ai | All versions | No fix listed |
| redhat openshift devspaces | = 3 | No fix listed |
| redhat jboss enterprise bpms platform | = 7 | No fix listed |
| npm handlebars(npm) | >= 4.0.0, <= 4.7.8 | No fix listed |
| 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 |
Show 35 more
| Product | Affected versions | Fixed in |
|---|---|---|
| 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/cluster-observability-operator/logging-console-plugin-pf4-rhel9:1782839279(Red Hat:cluster_observability_operator:1.5::el9) | All versions | No fix listed |
| redhat/cluster-observability-operator/logging-console-plugin-pf5-rhel9:1782840539(Red Hat:cluster_observability_operator:1.5::el9) | All versions | No fix listed |
| redhat/cluster-observability-operator/troubleshooting-panel-console-plugin-pf6-rhel9:1782839996(Red Hat:cluster_observability_operator:1.5::el9) | All versions | No fix listed |
| redhat/devspaces/code-rhel9:1776744110(Red Hat:openshift_devspaces:3.27::el9) | All versions | No fix listed |
| redhat/openshift-logging/elasticsearch6-rhel9(Red Hat:logging:5) | All versions | No fix listed |
| 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/rhdh/rhdh-hub-rhel9(Red Hat:rhdh:1) | All versions | No fix listed |
| redhat/thunderbird(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/389-ds:1.4/389-ds-base(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/thunderbird(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/thunderbird(Red Hat:enterprise_linux:9) | 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 |
| npm handlebars(npm) | >= 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-2w6w-674q-4c4q 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
- Red Hat CVE page mitigation vdb-entry vendor-advisory
- RHBZ#2452523 issue-tracking
- security.access.redhat.com
- RHSA-2026:34342 patch vendor-advisory
- RHSA-2026:10175 patch vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- Debian Security Tracker CVE-2026-33937 vendor-advisory
- www.cve.org
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- github.com product
- ENISA EUVD EUVD-2026-16848 third-party-advisory