Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-33937

published critical CVSS 3.1 · 9.8

Handlebars.js has JavaScript Injection via AST Type Confusion

Published
27 Mar 2026, 21:03:46 UTC
Updated
04 Sep 2026, 12:04:45 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
handlebars-lang — handlebars.js>= 4.0.0, < 4.7.9 Affected Not stated GitHub_M
Red Hat — cluster-observability-operator/logging-console-plugin-pf4-rhel9Cluster Observability Operator 1.5.0 · 1782839279 and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — cluster-observability-operator/logging-console-plugin-pf5-rhel9Cluster Observability Operator 1.5.0 · 1782840539 and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — cluster-observability-operator/troubleshooting-panel-console-plugin-pf6-rhel9Cluster Observability Operator 1.5.0 · 1782839996 and later · Other versions: affected Unaffected Not stated redhat-SADP
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Red Hat — devspaces/code-rhel9Red Hat OpenShift Dev Spaces 3.27 · 1776744110 and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — handlebarsCryostat 4 Unaffected Not required redhat-SADP
Red Hat — openshift-logging/elasticsearch6-rhel9Logging Subsystem for Red Hat OpenShift Affected Not stated redhat-SADP
Show 15 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Red Hat — openshift-logging/elasticsearch-operator-bundleLogging Subsystem for Red Hat OpenShift Affected Not stated redhat-SADP
Red Hat — openshift-logging/elasticsearch-proxy-rhel9Logging Subsystem for Red Hat OpenShift Affected Not stated redhat-SADP
Red Hat — openshift-logging/elasticsearch-rhel9-operatorLogging Subsystem for Red Hat OpenShift Affected Not stated redhat-SADP
Red Hat — openshift-logging/kibana6-rhel8Logging Subsystem for Red Hat OpenShift Affected Not stated redhat-SADP
Red Hat — openshift-logging/logging-curator5-rhel9Logging Subsystem for Red Hat OpenShift Affected Not stated redhat-SADP
Red Hat — handlebarsRed Hat Data Grid 8 Unaffected Not required redhat-SADP
Red Hat — rhdh/rhdh-hub-rhel9Red Hat Developer Hub Affected Not stated redhat-SADP
Red Hat Enterprise Linux 7, 8, 9, 10 firefox Unaffected Not required redhat-SADP
Red Hat Enterprise Linux 8, 9, 10 thunderbird Affected Not stated redhat-SADP
Red Hat Enterprise Linux 8 389-ds:1.4/389-ds-base Affected Not stated redhat-SADP
Red Hat Enterprise Linux 8 grafana Unaffected Not required redhat-SADP
Red Hat Enterprise Linux 8 mozjs60 Unaffected Not required redhat-SADP
Red Hat — rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9Red Hat OpenShift AI (RHOAI) Unaffected Not required redhat-SADP
Red Hat — devspaces/dashboard-rhel9Red Hat OpenShift Dev Spaces Unaffected Not required redhat-SADP
Red Hat — handlebarsRed Hat Process Automation 7 Unaffected Not required redhat-SADP

Description

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.

en · GitHub_M · cna

en · redhat-SADP · adp

A flaw was found in Handlebars. An attacker can exploit this by supplying a crafted Abstract Syntax Tree (AST) object to the `Handlebars.compile()` function. This allows the injection and execution of arbitrary JavaScript code due to improper sanitization of the `value` field in `NumberLiteral` AST nodes. This vulnerability can lead to Remote Code Execution (RCE) on the server.

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
9.8 / 10
Severity
critical
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 9.8 critical redhat-SADP · adp CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
handlebars-lang handlebars.js >= 4.0.0, < 4.7.9 (affected) GitHub_M · cna
Red Hat Cluster Observability Operator 1.5.0 1782839279 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Cluster Observability Operator 1.5.0 1782840539 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Cluster Observability Operator 1.5.0 1782839996 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat OpenShift Dev Spaces 3.27 1776744110 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Cryostat 4 Default: unaffected redhat-SADP · adp
Red Hat Logging Subsystem for Red Hat OpenShift Default: affected redhat-SADP · adp
Red Hat Logging Subsystem for Red Hat OpenShift Default: affected redhat-SADP · adp
Red Hat Logging Subsystem for Red Hat OpenShift Default: affected redhat-SADP · adp
Red Hat Logging Subsystem for Red Hat OpenShift Default: affected redhat-SADP · adp
Red Hat Logging Subsystem for Red Hat OpenShift Default: affected redhat-SADP · adp
Red Hat Logging Subsystem for Red Hat OpenShift Default: affected redhat-SADP · adp
Red Hat Red Hat Data Grid 8 Default: unaffected redhat-SADP · adp
Red Hat Red Hat Developer Hub Default: affected redhat-SADP · adp
Red Hat Red Hat Enterprise Linux 10 Default: unaffected redhat-SADP · adp
Red Hat Red Hat Enterprise Linux 10 Default: affected redhat-SADP · adp
Red Hat Red Hat Enterprise Linux 7 Default: unaffected redhat-SADP · adp
Red Hat Red Hat Enterprise Linux 8 Default: affected redhat-SADP · adp
Red Hat Red Hat Enterprise Linux 8 Default: unaffected redhat-SADP · adp
Red Hat Red Hat Enterprise Linux 8 Default: unaffected redhat-SADP · adp
Red Hat Red Hat Enterprise Linux 8 Default: unaffected redhat-SADP · adp
Red Hat Red Hat Enterprise Linux 8 Default: affected redhat-SADP · adp
Red Hat Red Hat Enterprise Linux 9 Default: unaffected redhat-SADP · adp
Red Hat Red Hat Enterprise Linux 9 Default: affected redhat-SADP · adp
Red Hat Red Hat OpenShift AI (RHOAI) Default: unaffected redhat-SADP · adp
Red Hat Red Hat OpenShift Dev Spaces Default: unaffected redhat-SADP · adp
Red Hat Red Hat Process Automation 7 Default: unaffected redhat-SADP · adp

Weaknesses

3
  • CWE-843 CWE-843: Access of Resource Using Incompatible Type ('Type Confusion') (GitHub_M · cna)
  • CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection') (GitHub_M · cna)
  • CWE-94 Improper Control of Generation of Code ('Code Injection') (redhat-SADP · adp)

References

8

Provider assertions

3

GitHub_M · cna

Handlebars.js has JavaScript Injection via AST Type Confusion

redhat-SADP · adp

handlebars.js: Handlebars: Remote Code Execution via crafted Abstract Syntax Tree object in compile()

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
517091499ae44c389a5c5c4fd151d3904759dd75ebd78f51f1c1f59559dca4b0
Ingested
23 Sep 2026, 09:10:54 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected