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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-03-27 · Modified: 2026-09-04
- Aliases: UBUNTU-CVE-2026-33939, DEBIAN-CVE-2026-33939, CGA-3233-p47g-cjjj, CGA-329j-rqqp-fj6h, CGA-3wgp-xww7-g2cg, CGA-622x-qpvv-98fr, CGA-6cf4-mg2h-5xwg, CGA-6qfq-w6x3-rj74, CGA-6w39-8vww-26xg, CGA-7hjg-c2jw-jf8c, CGA-f4fm-jmxq-84mp, CGA-h7vr-w9wf-4jf4, CGA-hqm8-pvh4-wm8h, CGA-j459-qh63-f883, CGA-m733-fwgh-3vhc, CGA-p9r4-4xfr-gxxw, CGA-pwpv-rpr8-q9j9, CGA-qfp5-g45p-cj5h, CGA-qvvh-g79f-m9h5, CGA-rw4j-v27v-x4gc, CGA-vgrg-hhgc-g272, CGA-wqxv-r3q5-4f8x, CGA-x7mq-mjqr-888g, CGA-xr76-ffc8-xfgh, GHSA-9cx6-37pm-9jff, CGA-243q-7wh9-f7mq, CGA-25r4-wr7p-8h3x, CGA-299w-3gv7-g2xq, CGA-2c3f-7x45-w4hc, CGA-2mj9-45p6-6mmm, CGA-2qw9-4qfw-c32f, CGA-2r9x-cwcv-7ghv, CGA-39g5-3946-ff6c, CGA-3c87-cvww-cp2v, CGA-3f35-jrg3-4r39, CGA-3r54-38q3-pjrh, CGA-4m82-wgjh-rcq8, CGA-4wj8-cwvg-3jvc, CGA-52wm-6jwh-484v, CGA-555q-p233-g334, CGA-58v8-p2xv-99v8, CGA-5crh-7872-h3pj, CGA-5cxq-5x8h-qmjx, CGA-5rc7-xx3q-4jm8, CGA-5v6r-5m8f-p779, CGA-5wc2-g2r4-6g5h, CGA-639x-6xwp-43r2, CGA-6cxc-gf64-j788, CGA-6gqr-757r-w5rv, CGA-6wp3-6j85-w5cg, CGA-6x4p-334p-57xj, CGA-6xj5-92pj-xh4w, CGA-79pj-xvgm-2gxm, CGA-7f3r-6qxv-56w7, CGA-7gc7-8h82-rq3c, CGA-7qxg-g8wj-g5mm, CGA-8499-jrqr-5rw6, CGA-87fj-g8w2-rw5r, CGA-8cr7-9w97-ch47, CGA-8php-7262-vhwf, CGA-8w92-pq3q-v9cj, CGA-8wjc-m4rf-x269, CGA-93xm-qgqf-wwv8, CGA-9g4p-38pg-8jcp, CGA-9r2w-fmq8-66j9, CGA-9rrv-wh25-m67p, CGA-9wfq-x4jg-wgv9, CGA-c5r7-g33q-6674, CGA-c7m5-v7qw-h38r, CGA-c88x-3j4g-vv88, CGA-cxvr-gx49-8729, CGA-f838-hvv5-qqv2, CGA-ffxg-hg7f-86xg, CGA-fm6h-5c4h-r4rv, CGA-fpqm-h4c5-8gcc, CGA-fqvq-rcg2-pp52, CGA-fv4j-74g4-j397, CGA-fv73-wvv9-948r, CGA-g4c2-h5ff-j4m6, CGA-gc52-cqv8-w82j, CGA-gj8f-jc94-9gxw, CGA-gxwp-4w75-486g, CGA-h89c-v8jp-x4cw, CGA-h9hj-8h5h-8242, CGA-hc55-3854-m9wj, CGA-hvw3-9rv3-p848, CGA-hx2v-pqq4-j3m9, CGA-hxhh-28p2-jjqq, CGA-j9pf-hhv8-rm6m, CGA-jmfc-9jmh-p5mh, CGA-jpmj-ch5f-2jcc, CGA-m2pg-3qcf-c4vm, CGA-m3mp-mfv9-43jq, CGA-m4g9-hgw2-w9m9, CGA-mc66-837w-9q69, CGA-mcw7-vc7c-qw4q, CGA-mm83-28vr-qj94, CGA-mmjf-xqqw-8jcj, CGA-mx2g-432f-p67w, CGA-p377-gcw4-p4x9, CGA-p5jc-x376-v2mv, CGA-ppqg-f5xh-2jqg, CGA-pqm4-m547-3mhv, CGA-q972-hhrm-3f3x, CGA-qf3p-f5cp-vw8p, CGA-qgpq-g52p-f4xg, CGA-qv8f-v9jr-9hx9, CGA-r3f7-wfw2-xfh8, CGA-r4rg-cg5r-fcch, CGA-r5c9-f2p6-cc85, CGA-r8fg-qrjp-23f8, CGA-rf8m-53pc-wfh3, CGA-rhf4-ww6j-533q, CGA-rvmf-43xw-56p3, CGA-rxhq-v7g2-c2v4, CGA-v4gj-5jhx-xxv8, CGA-vgg2-9j4x-qr2p, CGA-wc87-mgxf-pq5j, CGA-wjq6-x486-44wf, CGA-wmpq-r7pg-46wv, CGA-wx3q-w7c5-2wvc, CGA-x725-g84j-c89x, CGA-xj9m-557q-rvg2, CGA-xwjj-fg6v-m677
- Record: https://cvemate.com/vulnerability/CVE-2026-33939 · JSON: https://cvemate.com/vulnerability/CVE-2026-33939/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.673%, percentile 53.5%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 78)

- chainguard gitlab-rails-ce-18.1 (Chainguard): \< 18.1.6-r14
- chainguard gitlab-rails-ce-18.10 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.11 (Chainguard): \< 18.11.6-r2
- chainguard gitlab-rails-ce-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.0 (Chainguard): \< 19.0.3-r1
- chainguard gitlab-rails-ce-19.1 (Chainguard): \< 19.1.1-r6
- chainguard gitlab-rails-ce-assets-fips-19.4 (Chainguard): \< 19.4.0-r2
- chainguard gitlab-rails-ce-fips-18.1 (Chainguard): \< 18.1.6-r15
- chainguard gitlab-rails-ce-fips-18.10 (Chainguard): \< 18.10.8-r8
- chainguard gitlab-rails-ce-fips-18.11 (Chainguard): \< 18.11.6-r1
- chainguard gitlab-rails-ce-fips-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.9 (Chainguard): \< 18.9.8-r8
- chainguard gitlab-rails-ce-fips-19.0 (Chainguard): \< 19.0.3-r1

## References

- <https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-9cx6-37pm-9jff>
- <https://github.com/handlebars-lang/handlebars.js/commit/68d8df5a88e0a26fe9e6084c5c6aaebe67b07da2>
- <https://github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.9>
- <https://access.redhat.com/security/cve/CVE-2026-33939>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2452508>
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33939.json>
- <https://access.redhat.com/errata/RHSA-2026:34342>
- <https://access.redhat.com/errata/RHSA-2026:10175>
- <https://ubuntu.com/security/CVE-2026-33939>
- <https://www.cve.org/CVERecord?id=CVE-2026-33939>
- <https://security-tracker.debian.org/tracker/CVE-2026-33939>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33939.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33939>
- <https://github.com/handlebars-lang/handlebars.js>

---

Data as of 2026-12-05T08:38:12.610Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
