Advisory

GHSA-4952-p58q-6crx

Also known as: BIT-jupyterlab-2021-32797, CVE-2021-32797, PYSEC-2021-130, PYSEC-2026-688

Summary

JupyterLab: XSS due to lack of sanitization of the action attribute of an html <form>

Details

Impact

Untrusted notebook can execute code on load. This is a remote code execution, but requires user action to open a notebook.

Patches

Patched in the following versions: 3.1.4, 3.0.17, 2.3.2, 2.2.10, 1.2.21.

References

OWASP Page on Restricting Form Submissions

For more information

If you have any questions or comments about this advisory, or vulnerabilities to report, please email our security list [email protected].

Credit: Guillaume Jeanne from Google

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-08-23 19:40 UTC
Modified
2026-07-08 06:28 UTC

Affected packages and fixes

jupyterlab

PyPI · All systems

Affected

  • introduced 0, fixed 1.2.21 (ecosystem)

Fixed versions

1.2.21

Fix

  • Fixed version 1.2.21
    pip install --upgrade jupyterlab==1.2.21

jupyterlab

PyPI · All systems

Affected

  • introduced 2.0.0a0, fixed 2.2.10 (ecosystem)

Fixed versions

2.2.10

Fix

  • Fixed version 2.2.10
    pip install --upgrade jupyterlab==2.2.10

jupyterlab

PyPI · All systems

Affected

  • introduced 2.3.0a0, fixed 2.3.2 (ecosystem)

Fixed versions

2.3.2

Fix

  • Fixed version 2.3.2
    pip install --upgrade jupyterlab==2.3.2

jupyterlab

PyPI · All systems

Affected

  • introduced 3.0.0a0, fixed 3.0.17 (ecosystem)

Fixed versions

3.0.17

Fix

  • Fixed version 3.0.17
    pip install --upgrade jupyterlab==3.0.17

jupyterlab

PyPI · All systems

Affected

  • introduced 3.1.0a0, fixed 3.1.4 (ecosystem)

Fixed versions

3.1.4

Fix

  • Fixed version 3.1.4
    pip install --upgrade jupyterlab==3.1.4

notebook

PyPI · All systems

Affected

  • introduced 0, fixed 5.7.11 (ecosystem)

Fixed versions

5.7.11

Fix

  • Fixed version 5.7.11
    pip install --upgrade notebook==5.7.11

notebook

PyPI · All systems

Affected

  • introduced 6.0.0, fixed 6.4.1 (ecosystem)

Fixed versions

6.4.1

Fix

  • Fixed version 6.4.1
    pip install --upgrade notebook==6.4.1

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences