CVE-2021-32797: Jupyter Jupyterlab

Critical severity, CVSS 9.6. EPSS: 2.7% probability of exploitation activity in the next 30 days.

JupyterLab is a user interface for Project Jupyter which will eventually replace the classic Jupyter Notebook. In affected versions untrusted notebook can execute code on load. In particular JupyterLab doesn’t sanitize the action attribute of html `<form>`. Using this it is possible to trigger the form validation outside of the form itself. This is a remote code execution, but requires user action to open a notebook.

What to do

The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.

  • Jupyter Jupyterlab, before 1.2.21: fixed in 1.2.21
  • Jupyter Jupyterlab, from 2.0.0, before 2.2.10: fixed in 2.2.10
  • Jupyter Jupyterlab, from 2.3.0, before 2.3.2: fixed in 2.3.2
  • Jupyter Jupyterlab, from 3.0.0, before 3.0.17: fixed in 3.0.17
  • Jupyter Jupyterlab, from 3.1.0, before 3.1.4: fixed in 3.1.4

Affected products

  • Jupyter Jupyterlab: before 1.2.21 (fixed in 1.2.21); from 2.0.0, before 2.2.10 (fixed in 2.2.10); from 2.3.0, before 2.3.2 (fixed in 2.3.2); from 3.0.0, before 3.0.17 (fixed in 3.0.17); from 3.1.0, before 3.1.4 (fixed in 3.1.4)

Affected packages

Published 2021-08-09. Last modified 2026-06-17.