csirt@kutim:~/threat-intel/cve/CVE-2026-33937

Katalog CVE

CVSS 9.8 · Critical EPSS 1,7%

Kerentanan Improper Control of Generation of Code ('Code Injection') pada handlebarsjs handlebars. Skor CVSS 3.1 9.8 (Critical) menurut github.com.

Deskripsi (NVD)

Handlebars provides the power necessary to let users build semantic templates. In versions 4.0.0 through 4.7.8, `Handlebars.compile()` accepts a pre-parsed AST object in addition to a template string. The `value` field of a `NumberLiteral` AST node is emitted directly into the generated JavaScript without quoting or sanitization. An attacker who can supply a crafted AST to `compile()` can therefore inject and execute arbitrary JavaScript, leading to Remote Code Execution on the server. Version 4.7.9 fixes the issue. Some workarounds are available. Validate input type before calling `Handlebars.compile()`; ensure the argument is always a `string`, never a plain object or JSON-deserialized value. Use the Handlebars runtime-only build (`handlebars/runtime`) on the server if templates are pre-compiled at build time; `compile()` will be unavailable.

Rincian

Terbit di NVD
27 Maret 2026
Terakhir diubah
4 September 2026
Status NVD
Modified
CVSS 3.1
9.8 (Critical), sumber github.com
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · uraikan di kalkulator
Jenis kelemahan (CWE)
CWE-94: Improper Control of Generation of Code ('Code Injection')
CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')
EPSS (30 hari)
1,7% peluang dieksploitasi; lebih tinggi dari 77,0% CVE lain

Produk dan versi terdampak

VendorProdukVersi terdampak
handlebarsjs handlebars Versi 4.0.0 hingga sebelum 4.7.9

> Data dari konfigurasi CPE di NVD.

Referensi dan perbaikan

Sumber: NVD · CVE.org · EPSS. Halaman ini disusun otomatis dari data tersebut; pembaruan terakhir 5 Okt 2026, 20:11 WITA. Kalau sistem di Perangkat Daerah memakai produk ini dan butuh bantuan, laporkan lewat kanal pelaporan.