CVSS 3.1
8.1 highCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HHigh (8.1) in handlebarsjs handlebars. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in handlebars 4.7.9.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:Hhandlebars (npm): fixed in 4.7.9Explain CVE-2026-33940 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-33940?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-33940?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-33940 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| handlebarsjs:handlebars | from 4.0.0 before 4.7.9 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-xhpv-hc6g-r9c6 | npm | handlebars | >=4.0.0 <4.7.9 | 4.7.9 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13 | node-handlebars | no fix listed | DEBIAN-CVE-2026-33940 |
| Debian | 14 | node-handlebars | 3:4.7.9-1 | DEBIAN-CVE-2026-33940 |
| Ubuntu | 18.04:LTS, 20.04:LTS, 22.04:LTS and 4 more | node-handlebars | no fix listed | UBUNTU-CVE-2026-33940 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.
Red Hat rates this Important.
This is an Important arbitrary code execution vulnerability in Handlebars.js. The flaw can be exploited when an application uses Handlebars.js with dynamic partial lookups and processes user-controlled data within the template context. Red Hat products bundling Handlebars.js are affected if they meet these specific conditions for exploitation.
To mitigate this issue, use the runtime-only build of Handlebars.js, which prevents the fallback compilation path from being reached. Alternatively, sanitize all context data before rendering to ensure no non-primitive objects are passed to dynamic partials. Avoid dynamic partial lookups (`{{> (lookup ...)}}`) when context data is user-controlled. Implementing these mitigations may require application-level changes.
| Product | Package | State | Advisory |
|---|---|---|---|
| Cluster Observability Operator 1.5.3 | cluster-observability-operator/logging-console-plugin-pf4-rhel9:1782839279 | Fixed 2026-07-01 | RHSA-2026:34342 |
| Cluster Observability Operator 1.5.3 | cluster-observability-operator/logging-console-plugin-pf5-rhel9:1782840539 | Fixed 2026-07-01 | RHSA-2026:34342 |
| Cluster Observability Operator 1.5.3 | cluster-observability-operator/troubleshooting-panel-console-plugin-pf6-rhel9:1782839996 | Fixed 2026-07-01 | RHSA-2026:34342 |
| Red Hat OpenShift Dev Spaces 3.27 | devspaces/code-rhel9:1776744110 | Fixed 2026-04-23 | RHSA-2026:10175 |
| Cryostat 4 | handlebars | Not affected | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/elasticsearch6-rhel9 | Will not fix | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/elasticsearch-operator-bundle | Will not fix | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/elasticsearch-proxy-rhel9 | Will not fix | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/elasticsearch-rhel9-operator | Will not fix | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/kibana6-rhel8 | Will not fix | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/logging-curator5-rhel9 | Will not fix | |
| Red Hat Data Grid 8 | handlebars | Not affected | |
| Red Hat Developer Hub 1 | rhdh/rhdh-hub-rhel9 | Not affected | |
| Red Hat Enterprise Linux 10 | firefox | Not affected | |
| Red Hat Enterprise Linux 10 | thunderbird | Affected | |
| Red Hat Enterprise Linux 7 | firefox | Not affected | |
| Red Hat Enterprise Linux 8 | 389-ds:1.4/389-ds-base | Will not fix | |
| Red Hat Enterprise Linux 8 | firefox | Not affected | |
| Red Hat Enterprise Linux 8 | grafana | Not affected | |
| Red Hat Enterprise Linux 8 | mozjs60 | Not affected | |
| 5 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-33940.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.