# CVE-2026-33939: Handlebars.js has Denial of Service via Malformed Decorator Syntax in Template Compilation

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.67%, higher than 53% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-27T18:21:15.000Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-9cx6-37pm-9jff
- Weaknesses: CWE-248, CWE-754
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- handlebars-lang handlebars.js: >= 4.0.0, < 4.7.9
- cluster-observability-operator/logging-console-plugin-pf4-rhel9: no versions given (not affected: from 1782839279 before *)
- cluster-observability-operator/logging-console-plugin-pf5-rhel9: no versions given (not affected: from 1782840539 before *)
- cluster-observability-operator/troubleshooting-panel-console-plugin-pf6-rhel9: no versions given (not affected: from 1782839996 before *)
- devspaces/code-rhel9: no versions given (not affected: from 1776744110 before *)
- handlebars: no versions given
- openshift-logging/elasticsearch6-rhel9: no versions given
- openshift-logging/elasticsearch-operator-bundle: no versions given
- openshift-logging/elasticsearch-proxy-rhel9: no versions given
- openshift-logging/elasticsearch-rhel9-operator: no versions given
- openshift-logging/kibana6-rhel8: no versions given
- openshift-logging/logging-curator5-rhel9: no versions given
- firefox: no versions given
- thunderbird: no versions given
- 389-ds:1.4/389-ds-base: no versions given
- grafana: no versions given
- mozjs60: no versions given
- rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9: no versions given
- handlebars (npm): from 4.0.0 before 4.7.9
- handlebarsjs handlebars: from 4.0.0 before 4.7.9

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- redhat-SADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-9cx6-37pm-9jff> (exploit, vendor-advisory, web)
- <https://github.com/handlebars-lang/handlebars.js/commit/68d8df5a88e0a26fe9e6084c5c6aaebe67b07da2> (patch, web)
- <https://github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.9> (release-notes, web)
- <https://access.redhat.com/security/cve/CVE-2026-33939> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2452508> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33939.json>
- <https://access.redhat.com/errata/RHSA-2026:34342> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:10175> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33939> (advisory)
- <https://github.com/handlebars-lang/handlebars.js> (package)

## Sources

- CVE List: [CVE-2026-33939](https://www.cve.org/CVERecord?id=CVE-2026-33939), CVE Terms of Use, modified 2026-09-04
- GitHub Advisory Database: [GHSA-9cx6-37pm-9jff](https://github.com/advisories/GHSA-9cx6-37pm-9jff), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-33939](https://nvd.nist.gov/vuln/detail/CVE-2026-33939), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-33939 · Whole record: https://cve.day/CVE-2026-33939.json · Rebuilt by cve.day 2026-11-25T22:59:17.450Z
