Description
Handlebars provides the power necessary to let users build semantic templates. In versions 4.0.0 through 4.7.8, the `@partial-block` special variable is stored in the template data context and is reachable and mutable from within a template via helpers that accept arbitrary objects. When a helper overwrites `@partial-block` with a crafted Handlebars AST, a subsequent invocation of `{{> @partial-block}}` compiles and executes that AST, enabling arbitrary JavaScript execution on the server. Version 4.7.9 fixes the issue. Some workarounds are available. First, use the runtime-only build (`require('handlebars/runtime')`). The `compile()` method is absent, eliminating the vulnerable fallback path. Second, audit registered helpers for any that write arbitrary values to context objects. Helpers should treat context data as read-only. Third, avoid registering helpers from third-party packages (such as `handlebars-helpers`) in contexts where templates or context data can be influenced by untrusted input.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| handlebars-lang | handlebars.js | >= 4.0.0, < 4.7.9 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-handlebars | 3:4.7.9-1 | — |
| Debian 13 | node-handlebars | No fix yet | — |
| Debian 12 | node-handlebars | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | node-handlebars | No fix yet | — |
| Ubuntu 26.04 LTS | node-handlebars | No fix yet | — |
| Ubuntu 25.10 | node-handlebars | No fix yet | — |
| Ubuntu 24.04 LTS | node-handlebars | No fix yet | — |
| Ubuntu 22.04 LTS | node-handlebars | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | node-handlebars | No fix yet | — |
| Ubuntu 18.04 LTS | node-handlebars | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | jupyter-base-notebook | 7.6.3-r2 | — |
| Wolfi rolling | lerna | 9.0.7-r2 | — |
| Wolfi rolling | opensearch-dashboards-3 | 3.5.0-r12 | — |
| Wolfi rolling | prism | 5.14.3-r13 | — |
| Wolfi rolling | py3.10-jupyterlab +3 | 4.6.1-r1 | — |
| Wolfi rolling | rancher-api-ui | 1.2.3-r8 | — |
| Wolfi rolling | ts-patch | 4.0.1-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | handlebars | >= 4.0.0, < 4.7.9 | 4.7.9 | GHSA-3mfm-83xf-c92r |
Advisories 2
- WID-SEC-2026-1434 IBM App Connect Enterprise Certified Container: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 9, 2026
- WID-SEC-2026-3655 IBM InfoSphere Data Replication: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 29, 2026