Description
Jupyter Enterprise Gateway launches remote Jupyter Notebook kernels across distributed clusters like Apache Spark, Kubernetes, and Docker Swarm. In versions 2.0.0rc2 and above, prior to 3.3.0, the environment variables (KERNEL_XXX) used during the rendering of the Kubernetes manifest are vulnerable to Server Side Template Injection (SSTI). By including Jinja2 template expressions it is possible to execution Python code and OS Commands in the Enterprise Gateway service. The code can use or steal the Kubernetes service account token, which can steal Kubernetes secrets and be used to fully compromise the Kubernetes cluster by scheduling a privileged pod or a pod with a hostPath volume mount. This issue has been fixed in version 3.3.0.
Published: 2026-07-16
Score: 10 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Jupyter Enterprise Gateway launches remote Jupyter Notebook kernels across distributed clusters such as Apache Spark, Kubernetes, and Docker Swarm. In releases 2.0.0rc2 through 3.2.x, KERNEL_XXX environment variables embedded in the Kubernetes manifest are processed by the Jinja2 templating engine without sufficient sanitization, creating a Server‑Side Template Injection vulnerability. By including Jinja2 expressions, an attacker can cause the Gateway to execute arbitrary Python code and OS commands. The injected code can use or steal the Kubernetes service account token, permitting the retrieval of secret data and the creation of privileged pods or pods that mount hostPath volumes, thereby fully compromising the cluster. The issue was resolved in version 3.3.0, and the flaw is a Remote Code Execution vulnerability classified as CWE‑1336.

Affected Systems

The affected product is Jupyter Server Enterprise Gateway. All releases from 2.0 up to but not including 3.3.0 are vulnerable. The issue is fixed in version 3.3.0.

Risk and Exploitability

The CVSS score is 10, indicating critical severity. The EPSS score is <1%, so the probability of exploitation in the wild is currently very low, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector involves an attacker manipulating environment variable input during kernel launch via the Enterprise Gateway interface; however, the description does not fully specify the entry point, so this inference is based on the data that the vulnerability is triggered during the rendering of the Kubernetes manifest. Exploitation requires access to the Gateway service or the ability to submit kernel launch requests with crafted environment variable values.

Generated by OpenCVE AI on July 31, 2026 at 01:10 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Jupyter Enterprise Gateway to version 3.3.0 or later to remove the vulnerable rendering logic.
  • Strengthen Kubernetes cluster security by applying least‑privilege RBAC policies, ensuring that the Gateway service accounts have restricted permissions and disabling hostPath mounts or privileged pod scheduling for user workloads.
  • Restrict kernel launch requests by validating or sanitizing KERNEL_XXX environment variables before manifest rendering.

Generated by OpenCVE AI on July 31, 2026 at 01:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-f49j-v924-fx9w Jupyter Enterprise Gateway: Jinja2 Template Server Side Template Injection resulting in Remote Code Execution
History

Thu, 23 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Jupyter-server
Jupyter-server enterprise Gateway
Vendors & Products Jupyter-server
Jupyter-server enterprise Gateway

Fri, 17 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 16 Jul 2026 22:30:00 +0000

Type Values Removed Values Added
Description Jupyter Enterprise Gateway launches remote Jupyter Notebook kernels across distributed clusters like Apache Spark, Kubernetes, and Docker Swarm. In versions 2.0.0rc2 and above, prior to 3.3.0, the environment variables (KERNEL_XXX) used during the rendering of the Kubernetes manifest are vulnerable to Server Side Template Injection (SSTI). By including Jinja2 template expressions it is possible to execution Python code and OS Commands in the Enterprise Gateway service. The code can use or steal the Kubernetes service account token, which can steal Kubernetes secrets and be used to fully compromise the Kubernetes cluster by scheduling a privileged pod or a pod with a hostPath volume mount. This issue has been fixed in version 3.3.0.
Title Jupyter Enterprise Gateway: Jinja2 Template Server Side Template Injection results in Remote Code Execution
Weaknesses CWE-1336
References
Metrics cvssV4_0

{'score': 10, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}


Subscriptions

Jupyter-server Enterprise Gateway
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-17T14:05:01.860Z

Reserved: 2026-05-05T14:39:34.924Z

Link: CVE-2026-44181

cve-icon Vulnrichment

Updated: 2026-07-17T14:04:55.323Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T01:15:18Z

Weaknesses
  • CWE-1336

    Improper Neutralization of Special Elements Used in a Template Engine