Server Side Template Injection in Jupyter Enterprise Gateway for Apache Spark and Kubernetes
CVE-2026-44181
What is CVE-2026-44181?
Jupyter Enterprise Gateway, which facilitates launching remote Jupyter Notebook kernels across distributed systems such as Kubernetes and Docker Swarm, is susceptible to Server Side Template Injection (SSTI) in versions prior to 3.3.0. The vulnerability arises when environment variables (KERNEL_XXX) used for rendering Kubernetes manifests are manipulated through Jinja2 template expressions. This allows attackers to execute arbitrary Python code and system commands, potentially granting access to Kubernetes service account tokens. With these tokens, attackers can extract sensitive Kubernetes secrets and escalate their privileges to fully compromise the cluster, endangering its integrity and security. The issue has been addressed and resolved in version 3.3.0.
Affected Version(s)
enterprise_gateway >= 2.0.0rc2, < 3.3.0
