SCA: security update for handlebars (GHSA-2w6w-674q-4c4q)

critical Tenable Cloud Security Plugin ID 439342

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2026-33937)

Solution

Update the handlebars library and its related packages to version 4.7.9 or later.

See Also

https://github.com/advisories/GHSA-2w6w-674q-4c4q

Plugin Details

Severity: Critical

ID: 439342

Version: Revision 1.8

Type: Local

Family: SCA Checks

Published: 3/27/2026

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: High

Score: 7.7

Percentile: 99.06

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2026-33937

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/27/2026

Vulnerability Publication Date: 3/27/2026

Reference Information

CVE: CVE-2026-33937