8.3

CVE-2026-33941: handlebars-lang handlebars.js Cross-site Scripting

CVSS: 8.3v3.1HighModified
AliasesUBUNTU-CVE-2026-33941DEBIAN-CVE-2026-33941CGA-2hrm-j276-mfc4
Published 27-03-2026Last modified 11-09-2026

Vulnerability summary

CVE-2026-33941 is a high (CVSS 8.3) Cross-site Scripting vulnerability in handlebars-lang handlebars.js. EPSS estimates a 0.22% chance of exploitation in the next 30 days, higher than 11.6% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
43/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.3/10
010
High · v3.1 (CVE.org)
EPSS score
0.22%
0%100%
Low · -0.07 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 27-03-2026
    PublishedVulnerability first disclosed.
  2. 11-09-2026
    Last modifiedVulnerability information updated.

Description

Handlebars provides the power necessary to let users build semantic templates. In versions 4.0.0 through 4.7.8, the Handlebars CLI precompiler (`bin/handlebars` / `lib/precompiler.js`) concatenates user-controlled strings — template file names and several CLI options — directly into the JavaScript it emits, without any escaping or sanitization. An attacker who can influence template filenames or CLI arguments can inject arbitrary JavaScript that executes when the generated bundle is loaded in Node.js or a browser. Version 4.7.9 fixes the issue. Some workarounds are available. First, validate all CLI inputs before invoking the precompiler. Reject filenames and option values that contain characters with JavaScript string-escaping significance (`"`, `'`, `;`, etc.). Second, use a fixed, trusted namespace string passed via a configuration file rather than command-line arguments in automated pipelines. Third, run the precompiler in a sandboxed environment (container with no write access to sensitive paths) to limit the impact of successful exploitation. Fourth, audit template filenames in any repository or package that is consumed by an automated build pipeline.

CVSS metrics

7 scores · 7 sources · 1 version

EPSS trend

Probability

0.22%

Chance of exploitation in the next 30 days

Percentile

12%

Versus all other CVEs

30-day change

-0.07 pp

From 0.29% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.22%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Handlebars.Js

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Chainguard62 products
  • gitlab-rails-ce-18.1< 18.1.6-r14
  • gitlab-rails-ce-18.10All versions (No fix recorded)
  • gitlab-rails-ce-18.11< 18.11.6-r2
  • gitlab-rails-ce-18.5All versions (No fix recorded)
  • gitlab-rails-ce-18.6All versions (No fix recorded)
Wolfi11 products
  • jupyter-base-notebook< 7.6.3-r2
  • lerna< 9.0.7-r2
  • nextcloud-server-32< 32.0.12-r1
  • opensearch-dashboards-3< 3.5.0-r12
  • prism< 5.14.3-r13
Debian1 product
  • node-handlebarsAll versions (No fix recorded) | < 3:4.7.9-1
Handlebars-lang1 product
Handlebarsjs1 product
Npm1 product
  • handlebars≥ 4.0.0, < 4.7.9
Ubuntu1 product
  • node-handlebarsAll versions (No fix recorded)

7 vendors · 78 products

References

14 links
Show all 14 references