Skip to content

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

High severity GitHub Reviewed Published Aug 9, 2021 in jupyterlab/jupyterlab • Updated Feb 1, 2023

Package

pip jupyterlab (pip)

Affected versions

< 1.2.21
>= 2.0.0, < 2.2.10
>= 2.3.0, < 2.3.2
>= 3.0.0, < 3.0.17
>= 3.1.0, < 3.1.4

Patched versions

1.2.21
2.2.10
2.3.2
3.0.17
3.1.4
pip notebook (pip)
< 5.7.11
>= 6.0.0, < 6.4.1
5.7.11
6.4.1

Description

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 security@ipython.org.

Credit: Guillaume Jeanne from Google

References

@Carreau Carreau published to jupyterlab/jupyterlab Aug 9, 2021
Published by the National Vulnerability Database Aug 9, 2021
Reviewed Aug 23, 2021
Published to the GitHub Advisory Database Aug 23, 2021
Last updated Feb 1, 2023

Severity

High
7.4
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

CVE ID

CVE-2021-32797

GHSA ID

GHSA-4952-p58q-6crx

Source code

No known source code

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.