CVE-2026-33939
published high CVSS 3.1 · 7.5Handlebars.js has Denial of Service via Malformed Decorator Syntax in Template Compilation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| handlebars-lang | — | handlebars.js>= 4.0.0, < 4.7.9 | Affected | Not stated | GitHub_M |
| Red Hat | — | cluster-observability-operator/logging-console-plugin-pf4-rhel9Cluster Observability Operator 1.5.0 · 1782839279 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | cluster-observability-operator/logging-console-plugin-pf5-rhel9Cluster Observability Operator 1.5.0 · 1782840539 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | cluster-observability-operator/troubleshooting-panel-console-plugin-pf6-rhel9Cluster Observability Operator 1.5.0 · 1782839996 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | devspaces/code-rhel9Red Hat OpenShift Dev Spaces 3.27 · 1776744110 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | handlebarsCryostat 4 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | openshift-logging/elasticsearch6-rhel9Logging Subsystem for Red Hat OpenShift | Affected | Not stated | redhat-SADP |
| Red Hat | — | openshift-logging/elasticsearch-operator-bundleLogging Subsystem for Red Hat OpenShift | Affected | Not stated | redhat-SADP |
Show 13 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | openshift-logging/elasticsearch-proxy-rhel9Logging Subsystem for Red Hat OpenShift | Affected | Not stated | redhat-SADP |
| Red Hat | — | openshift-logging/elasticsearch-rhel9-operatorLogging Subsystem for Red Hat OpenShift | Affected | Not stated | redhat-SADP |
| Red Hat | — | openshift-logging/kibana6-rhel8Logging Subsystem for Red Hat OpenShift | Affected | Not stated | redhat-SADP |
| Red Hat | — | openshift-logging/logging-curator5-rhel9Logging Subsystem for Red Hat OpenShift | Affected | Not stated | redhat-SADP |
| Red Hat | — | handlebarsRed Hat Data Grid 8 | Unaffected | Not required | redhat-SADP |
| Red Hat Enterprise Linux | 7, 8, 10 | firefox | Unaffected | Not required | redhat-SADP |
| Red Hat Enterprise Linux | 8, 9, 10 | thunderbird | Unaffected | Not required | redhat-SADP |
| Red Hat Enterprise Linux | 8 | 389-ds:1.4/389-ds-base | Affected | Not stated | redhat-SADP |
| Red Hat Enterprise Linux | 8 | grafana | Unaffected | Not required | redhat-SADP |
| Red Hat Enterprise Linux | 8 | mozjs60 | Affected | Not stated | redhat-SADP |
| Red Hat Enterprise Linux | 9 | firefox | Affected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9Red Hat OpenShift AI (RHOAI) | Unaffected | Not required | redhat-SADP |
| Red Hat | — | handlebarsRed Hat Process Automation 7 | Unaffected | Not required | redhat-SADP |
Description
Handlebars provides the power necessary to let users build semantic templates. In versions 4.0.0 through 4.7.8, when a Handlebars template contains decorator syntax referencing an unregistered decorator (e.g. `{{*n}}`), the compiled template calls `lookupProperty(decorators, "n")`, which returns `undefined`. The runtime then immediately invokes the result as a function, causing an unhandled `TypeError: ... is not a function` that crashes the Node.js process. Any application that compiles user-supplied templates without wrapping the call in a `try/catch` is vulnerable to a single-request Denial of Service. Version 4.7.9 fixes the issue. Some workarounds are available. Wrap compilation and rendering in `try/catch`. Validate template input before passing it to `compile()`; reject templates containing decorator syntax (`{{*...}}`) if decorators are not used in your application. Use the pre-compilation workflow; compile templates at build time and serve only pre-compiled templates; do not call `compile()` at request time.
A flaw was found in Handlebars.js. A remote attacker can exploit this by submitting a malformed Handlebars template that includes decorator syntax referencing an unregistered decorator. When the application attempts to compile this template without proper error handling, it triggers an unhandled `TypeError`. This error causes the Node.js process to crash, resulting in a Denial of Service (DoS) for the affected application.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| handlebars-lang | handlebars.js | >= 4.0.0, < 4.7.9 (affected) | GitHub_M · cna |
| Red Hat | Cluster Observability Operator 1.5.0 | 1782839279 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Cluster Observability Operator 1.5.0 | 1782840539 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Cluster Observability Operator 1.5.0 | 1782839996 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift Dev Spaces 3.27 | 1776744110 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Cryostat 4 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Logging Subsystem for Red Hat OpenShift | Default: affected | redhat-SADP · adp |
| Red Hat | Logging Subsystem for Red Hat OpenShift | Default: affected | redhat-SADP · adp |
| Red Hat | Logging Subsystem for Red Hat OpenShift | Default: affected | redhat-SADP · adp |
| Red Hat | Logging Subsystem for Red Hat OpenShift | Default: affected | redhat-SADP · adp |
| Red Hat | Logging Subsystem for Red Hat OpenShift | Default: affected | redhat-SADP · adp |
| Red Hat | Logging Subsystem for Red Hat OpenShift | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Data Grid 8 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 10 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 10 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 7 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 8 | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 8 | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 9 | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 9 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI (RHOAI) | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Process Automation 7 | Default: unaffected | redhat-SADP · adp |
Weaknesses
2- CWE-754 CWE-754: Improper Check for Unusual or Exceptional Conditions
- CWE-248 Uncaught Exception
References
8- https://access.redhat.com/errata/RHSA-2026:10175
- https://access.redhat.com/errata/RHSA-2026:34342
- https://access.redhat.com/security/cve/CVE-2026-33939
- RHBZ#2452508 https://bugzilla.redhat.com/show_bug.cgi?id=2452508
- https://github.com/handlebars-lang/handlebars.js/commit/68d8df5a88e0a26fe9e6084c5c6aaebe67b07da2
- https://github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.9
- https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-9cx6-37pm-9jff
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33939.json
Provider assertions
3GitHub_M · cna
Handlebars.js has Denial of Service via Malformed Decorator Syntax in Template Compilation
redhat-SADP · adp
handlebars.js: Handlebars.js: Denial of Service via malformed decorator syntax in template compilation
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c3e79c7c573f95e9cca55ac88df257da7ff7bc5d698a83ddc9bea86b92052ef0
- Ingested
- 23 Sep 2026, 09:10:54 UTC
- Source record
- Official CVE record