JupyterGHSA-4952-p58q-6crx
JupyterLab: XSS due to lack of sanitization of the action attribute of an html <form>
Fix: upgrade to 1.2.21 or later (7 fixed versions below)
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
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| jupyterlab PyPI | < 1.2.21 | 1.2.21 |
| >= 2.0.0a0, < 2.2.10 | 2.2.10 | |
| >= 2.3.0a0, < 2.3.2 | 2.3.2 | |
| >= 3.0.0a0, < 3.0.17 | 3.0.17 | |
| >= 3.1.0a0, < 3.1.4 | 3.1.4 | |
| notebook PyPI | < 5.7.11 | 5.7.11 |
| >= 6.0.0, < 6.4.1 | 6.4.1 |
Details and references
- 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
- github.com/google/security-research/security/advisories/GHSA-c469-p3jp-2vhx
- github.com/jupyterlab/jupyterlab/security/advisories/GHSA-4952-p58q-6crx
- nvd.nist.gov/vuln/detail/CVE-2021-32797
- github.com/jupyterlab/jupyterlab/commit/504825938c0abfa2fb8ff8d529308830a5ae42ed
- github.com/pypa/advisory-database/tree/main/vulns/jupyterlab/PYSEC-2021-130.yaml