← Übersicht Red Hat Enterprise Linux, FreeIPA / IdM

Handlebars.js has JavaScript Injection in CLI Precompiler via Unescaped Names and Options

CVE-2026-33941 · DEBIAN-CVE-2026-33941 · DHI-5pzh-co6j-lucd-hoei · GHSA-xjpj-3mr7-gcpf · UBUNTU-CVE-2026-33941

Hoch · CVSS 8.2 Ubuntu: mediumRed Hat: Important Lokal · Nutzerinteraktion Kein Fix bekannt

Veröffentlicht
27.03.2026 19:22
Zuletzt geändert
19.11.2026
EPSS (30 Tage)
0.3 %
CVSS-Vektor
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

Beschreibung

Originaltext der Quelle, nicht übersetzt.

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.

Status beim Hersteller

Red Hat stuft seine Produktlinien ein: 4 betroffen, 2 behoben, 11 nicht betroffen.

Logging Subsystem for Red Hat OpenShift Betroffenwird nicht behoben openshift-logging/elasticsearch-operator-bundle, openshift-logging/elasticsearch-proxy-rhel9, openshift-logging/elasticsearch-rhel9-operator, openshift-logging/elasticsearch6-rhel9, openshift-logging/kibana6-rhel8, openshift-logging/logging-curator5-rhel9
Red Hat Enterprise Linux 10 BetroffenFix ausstehend firefox
Red Hat Enterprise Linux 8 Betroffenwird nicht behoben 389-ds-base, 389-ds-base-devel, 389-ds-base-legacy-tools, 389-ds-base-libs, 389-ds-base-snmp, cockpit-389-ds, python3-lib389
Red Hat Enterprise Linux 9 BetroffenFix ausstehend thunderbird
Cluster Observability Operator 1.5 Behoben cluster-observability-operator/logging-console-plugin-pf4-rhel9, cluster-observability-operator/logging-console-plugin-pf5-rhel9, cluster-observability-operator/troubleshooting-panel-console-plugin-pf6-rhel9 RHSA-2026:34342
Red Hat OpenShift Dev Spaces 3.27 Behoben devspaces RHSA-2026:10175
Nicht betroffen (12)
Cluster Observability Operator 1.5Nicht betroffenverwundbarer Code nicht enthaltencluster-observability-operator/alertmanager-rhel9, cluster-observability-operator/cluster-health-analyzer-rhel9, cluster-observability-operator/cluster-observability-operator-bundle, cluster-observability-operator/cluster-observability-rhel9-operator, cluster-observability-operator/dashboards-console-plugin-rhel9, cluster-observability-operator/distributed-tracing-console-plugin-pf4-rhel9, cluster-observability-operator/distributed-tracing-console-plugin-pf5-rhel9, cluster-observability-operator/distributed-tracing-console-plugin-pf6-rhel9, cluster-observability-operator/distributed-tracing-console-plugin-rhel9, cluster-observability-operator/korrel8r-rhel9, cluster-observability-operator/logging-console-plugin-rhel9, cluster-observability-operator/monitoring-console-plugin-pf5-rhel9, cluster-observability-operator/monitoring-console-plugin-pf6-rhel9, cluster-observability-operator/monitoring-console-plugin-rhel9, cluster-observability-operator/obo-prometheus-operator-admission-webhook-rhel9, cluster-observability-operator/obo-prometheus-operator-prometheus-config-reloader-rhel9, cluster-observability-operator/obo-prometheus-rhel9-operator, cluster-observability-operator/perses-rhel9, cluster-observability-operator/perses-rhel9-operator, cluster-observability-operator/prometheus-rhel9, cluster-observability-operator/thanos-rhel9, cluster-observability-operator/troubleshooting-panel-console-plugin-rhel9
Cryostat 4Nicht betroffenKomponente nicht enthaltenhandlebars
Red Hat Data Grid 8Nicht betroffenfür Angreifer nicht steuerbarhandlebars
Red Hat Developer Hub 1Nicht betroffenKomponente nicht enthaltenrhdh/rhdh-hub-rhel9
Red Hat Enterprise Linux 10Nicht betroffenverwundbarer Code wird nicht ausgeführtthunderbird
Red Hat Enterprise Linux 7Nicht betroffenverwundbarer Code wird nicht ausgeführtfirefox
Red Hat Enterprise Linux 8Nicht betroffenverwundbarer Code wird nicht ausgeführtfirefox, mozjs60, mozjs60-devel, thunderbird
Red Hat Enterprise Linux 8Nicht betroffenverwundbarer Code nicht enthaltengrafana, grafana-azure-monitor, grafana-cloudwatch, grafana-elasticsearch, grafana-graphite, grafana-influxdb, grafana-loki, grafana-mssql, grafana-mysql, grafana-opentsdb, grafana-postgres, grafana-prometheus, grafana-selinux, grafana-stackdriver
Red Hat Enterprise Linux 9Nicht betroffenverwundbarer Code wird nicht ausgeführtfirefox, firefox-x11
Red Hat OpenShift AI (RHOAI)Nicht betroffenverwundbarer Code nicht enthaltenrhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9
Red Hat OpenShift Dev Spaces 3.27Nicht betroffenverwundbarer Code nicht enthaltendevspaces
Red Hat Process Automation 7Nicht betroffenKomponente nicht enthaltenhandlebars

Betroffene Pakete im beobachteten Stack

Red Hat:enterprise_linux:10firefoxkein Fix bekanntCVE-2026-33941
Red Hat:enterprise_linux:8389-ds-basekein Fix bekanntCVE-2026-33941
Red Hat:enterprise_linux:8389-ds-base-develkein Fix bekanntCVE-2026-33941
Red Hat:enterprise_linux:8389-ds-base-legacy-toolskein Fix bekanntCVE-2026-33941
Red Hat:enterprise_linux:8389-ds-base-libskein Fix bekanntCVE-2026-33941
Red Hat:enterprise_linux:8389-ds-base-snmpkein Fix bekanntCVE-2026-33941
Red Hat:enterprise_linux:8cockpit-389-dskein Fix bekanntCVE-2026-33941
Red Hat:enterprise_linux:8python3-lib389kein Fix bekanntCVE-2026-33941
Red Hat:enterprise_linux:9thunderbirdkein Fix bekanntCVE-2026-33941
Weitere betroffene Pakete (24)
CVEhandlebars-lang/handlebars.jskein Fix bekanntCVE-2026-33941
Debian:12node-handlebarskein Fix bekanntDEBIAN-CVE-2026-33941
Debian:13node-handlebarskein Fix bekanntDEBIAN-CVE-2026-33941
Debian:14node-handlebars3:4.7.9-1DEBIAN-CVE-2026-33941
Docker Hardened Images:Alpine:3.24jupyterhub-k8s-singleuser-samplekein Fix bekanntDHI-5pzh-co6j-lucd-hoei
Docker Hardened Images:Alpine:3.24jupyterhub-k8s-singleuser-sample-fipskein Fix bekanntDHI-5pzh-co6j-lucd-hoei
Docker Hardened Images:Debian:13datahub-ingestionkein Fix bekanntDHI-5pzh-co6j-lucd-hoei
Docker Hardened Images:Debian:13jupyterhub-k8s-singleuser-samplekein Fix bekanntDHI-5pzh-co6j-lucd-hoei
Docker Hardened Images:Debian:13jupyterhub-k8s-singleuser-sample-fipskein Fix bekanntDHI-5pzh-co6j-lucd-hoei
Docker Hardened Images:Debian:13supersetkein Fix bekanntDHI-5pzh-co6j-lucd-hoei
NVDhandlebarsjs:handlebars4.0.0 → 4.7.9CVE-2026-33941
TuxCare:npmhandlebars3.0.3-tuxcare.0 → 3.0.3-tuxcare.2CLSA-2026-1777163884
TuxCare:npmhandlebars4.7.7-tuxcare.0 → 4.7.7-tuxcare.1CLSA-2026-1782349135
TuxCare:npmhandlebars4.7.8-tuxcare.0 → 4.7.8-tuxcare.1CLSA-2026-1782435546
TuxCare:npmhandlebars3.0.8-tuxcare.0 → 3.0.8-tuxcare.3CLSA-2026-1785117463
TuxCare:npmhandlebars4.5.3-tuxcare.0 → 4.5.3-tuxcare.3CLSA-2026-1792139237
Ubuntu:18.04:LTSnode-handlebarskein Fix bekanntUBUNTU-CVE-2026-33941
Ubuntu:20.04:LTSnode-handlebarskein Fix bekanntUBUNTU-CVE-2026-33941
Ubuntu:22.04:LTSnode-handlebarskein Fix bekanntUBUNTU-CVE-2026-33941
Ubuntu:24.04:LTSnode-handlebarskein Fix bekanntUBUNTU-CVE-2026-33941
Ubuntu:25.10node-handlebarskein Fix bekanntUBUNTU-CVE-2026-33941
Ubuntu:26.04:LTSnode-handlebarskein Fix bekanntUBUNTU-CVE-2026-33941
Ubuntu:26.10node-handlebarskein Fix bekanntUBUNTU-CVE-2026-33941
npmhandlebars4.0.0 → 4.7.9GHSA-xjpj-3mr7-gcpf

Empfohlene Prüfung

  1. Feststellen, ob und in welcher Version die betroffenen Pakete in Ihren Systemen, Images und Abhängigkeiten vorkommen.
  2. Wo eine Fix-Version genannt ist: aktualisieren. Wo nicht: Hersteller-Advisory und Referenzen auf Workarounds prüfen.
  3. Erreichbarkeit beachten: Der Angriffsweg (Lokal · Nutzerinteraktion) ist aus dem CVSS-Vektor abgeleitet.

Diese Seite sagt nichts darüber, ob Ihre Systeme betroffen sind. Das klärt erst eine Prüfung Ihrer Versionen.