CVE-2021-32798CWE-79

Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) in notebook

Critical · published August 9, 2021

CVSS v3.1
10.0
EPSS
2%
Percentile
81.6
In the wild
Unconfirmed
What it is

🚨 A single untrusted Jupyter notebook can lead to a catastrophic code execution on your computer! 🔥 Think of it like a restaurant menu that allows customers to swap in their own secret ingredients without any checks. If the chefs (your system) aren't vigilant, the dish served (the notebook) could become dangerously unpredictable! An attacker could craft a malicious ipynb document that, when opened, executes arbitrary code on your machine, allowing access to sensitive data or taking over your entire environment. It's not just annoying – it could be absolutely devastating, leading to a full compromise of your system!

Put simply

Think of it like a restaurant menu that allows customers to swap in their own secret ingredients without any checks. If the chefs (your system) aren't vigilant, the dish served (the notebook) could become dangerously unpredictable! This vulnerability arises because Jupyter Notebook utilizes a deprecated version of Google Caja for input sanitation, which can be bypassed, enabling XSS attacks that execute code via Jupyter APIs. Simply opening the malicious notebook is all it takes for the exploit to unfold.

What to do

An attacker could craft a malicious ipynb document that, when opened, executes arbitrary code on your machine, allowing access to sensitive data or taking over your entire environment. It's not just annoying – it could be absolutely devastating, leading to a full compromise of your system! To protect yourself, immediately update Jupyter Notebook to the latest version where this flaw is patched. If you're using any unsupported versions, ensure you transition to a supported one now. Also, avoid opening untrusted notebooks until your environment is secured! You’ve got this! With these steps, you’ll keep your systems safe and sound! 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.02106 · 81.6th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2021-08-09T20:50Z
EPSS history
Timeline
  • 09 AUG 20:50Z
    Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) in notebook
    cvelistv5