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 [email protected].

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

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

EPSS score

0.374%
(73rd percentile)

CVE ID

CVE-2021-32797

GHSA ID

GHSA-4952-p58q-6crx

Source code

No known source code

Credits

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