Vulnerability
CVE-2026-33939
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.
125 advisories report this vulnerability, across 6 ecosystems.
Advisories
- 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-3233-p47g-cjjj
- CGA-329j-rqqp-fj6h
- CGA-39g5-3946-ff6c
- CGA-3c87-cvww-cp2v
- CGA-3f35-jrg3-4r39
- CGA-3r54-38q3-pjrh
- CGA-3wgp-xww7-g2cg
- 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-622x-qpvv-98fr
- CGA-639x-6xwp-43r2
- CGA-6cf4-mg2h-5xwg
- CGA-6cxc-gf64-j788
- CGA-6gqr-757r-w5rv
- CGA-6qfq-w6x3-rj74
- CGA-6w39-8vww-26xg
- 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-7hjg-c2jw-jf8c
- 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-f4fm-jmxq-84mp
- 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-h7vr-w9wf-4jf4
- CGA-h89c-v8jp-x4cw
- CGA-h9hj-8h5h-8242
- CGA-hc55-3854-m9wj
- CGA-hqm8-pvh4-wm8h
- CGA-hvw3-9rv3-p848
- CGA-hx2v-pqq4-j3m9
- CGA-hxhh-28p2-jjqq
- CGA-j459-qh63-f883
- 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-m733-fwgh-3vhc
- 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-p9r4-4xfr-gxxw
- CGA-ppqg-f5xh-2jqg
- CGA-pqm4-m547-3mhv
- CGA-pwpv-rpr8-q9j9
- CGA-q972-hhrm-3f3x
- CGA-qf3p-f5cp-vw8p
- CGA-qfp5-g45p-cj5h
- CGA-qgpq-g52p-f4xg
- CGA-qv8f-v9jr-9hx9
- CGA-qvvh-g79f-m9h5
- CGA-r3f7-wfw2-xfh8
Showing the first 100. The API lists them all: /api/v1/vulnerabilities/CVE-2026-33939.
References
- 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://access.redhat.com/errata/RHSA-2026:10175
- https://access.redhat.com/errata/RHSA-2026:34342
- 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