Advisory

PYSEC-2021-130

Also known as: BIT-jupyterlab-2021-32797, CVE-2021-32797, GHSA-4952-p58q-6crx, PYSEC-2026-688

Summary

The record has no summary.

Details

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.

Severity

Not rated by the source.

Dates

Published
2021-08-09 21:15 UTC
Modified
2026-07-06 08:11 UTC

Affected packages and fixes

jupyterlab

PyPI · All systems

Affected

  • introduced 0, fixed 1.2.21, introduced 2, fixed 2.2.10, introduced 2.3, fixed 2.3.2, introduced 3, fixed 3.0.17, introduced 3.1, fixed 3.1.4 (ecosystem)

Fixed versions

1.2.21, 2.2.10, 2.3.2, 3.0.17, 3.1.4

Fix

  • Fixed version 1.2.21
    pip install --upgrade jupyterlab==1.2.21
  • Fixed version 2.2.10
    pip install --upgrade jupyterlab==2.2.10
  • Fixed version 2.3.2
    pip install --upgrade jupyterlab==2.3.2
  • Fixed version 3.0.17
    pip install --upgrade jupyterlab==3.0.17
  • Fixed version 3.1.4
    pip install --upgrade jupyterlab==3.1.4

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences