Skip to content
JupyterGHSA-4952-p58q-6crx

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

Medium7.4CVE-2021-32797 · Published Aug 23, 2021 · updated Jul 8, 2026

GitHub advisory

Affected versions

PackageAffectedFixed in
jupyterlab
PyPI
< 1.2.211.2.21
>= 2.0.0a0, < 2.2.102.2.10
>= 2.3.0a0, < 2.3.22.3.2
>= 3.0.0a0, < 3.0.173.0.17
>= 3.1.0a0, < 3.1.43.1.4
notebook
PyPI
< 5.7.115.7.11
>= 6.0.0, < 6.4.16.4.1
Details and references

### 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](https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html) ### For more information If you have any questions or comments about this advisory, or vulnerabilities to report, please email our security list security@ipython.org. Credit: Guillaume Jeanne from Google

CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
Severity from
GitHub (reviewed advisory)
Weakness
CWE-75, CWE-79, CWE-87
Also known as
BIT-jupyterlab-2021-32797, CVE-2021-32797, PYSEC-2021-130, PYSEC-2026-688

More Jupyter advisories

All Jupyter
DateAdvisory
Aug 232021Special Element Injection in notebook
CVE-2021-32798High10.0fixed in 5.7.11, 6.4.1
Nov 82021incomplete JupyterHub logout with simultaneous JupyterLab sessions
CVE-2021-41247Medium3.5fixed in 1.5.0
Mar 252022Insertion of Sensitive Information into Log File in Jupyter notebook
CVE-2022-24757High7.5fixed in 1.15.4
Apr 52022Sensitive Auth & Cookie data stored in Jupyter server logs
CVE-2022-24758High7.5fixed in 6.4.10
Dec 212020Jupyter Server open redirect vulnerability
CVE-2020-26275Medium6.1fixed in 1.1.1
May 142022Improper Neutralization of Input During Web Page Generation in Jupyter Notebook
CVE-2019-9644Medium5.4fixed in 5.7.6

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.