Advisory

PYSEC-2026-688

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

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

High Basis: CVSS v3 score 7.4, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

Dates

Published
2026-07-02 14:13 UTC
Modified
2026-07-06 08:11 UTC

Affected packages and fixes

notebook

PyPI · All systems

Affected

  • introduced 0, fixed 5.7.11, introduced 6.0.0, fixed 6.4.1 (ecosystem)

Fixed versions

5.7.11, 6.4.1

Fix

  • Fixed version 5.7.11
    pip install --upgrade notebook==5.7.11
  • 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: PyPA Advisory Database · CC BY 4.0

Sources & licences