Skip to content
OpenAdvisories
High · 7.4 CVE-2021-32797 BIT-jupyterlab-2021-32797EUVD-2021-0107GHSA-4952-p58q-6crxPYSEC-2021-130PYSEC-2026-688

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

Published Aug 9, 2021 · Updated Aug 3, 2024 · Assigned by GitHub_M

Description

JupyterLab is a user interface for Project Jupyter which will eventually replace the classic Jupyter Notebook. In affected versions untrusted notebook can execute code on load. In particular JupyterLab doesn’t sanitize the action attribute of html `<form>`. Using this it is possible to trigger the form validation outside of the form itself. This is a remote code execution, but requires user action to open a notebook.

Affected products

VendorProductAffectedFixed
jupyterlab jupyterlab >= 3.1.0, < 3.1.4, >= 3.0.0, < 3.0.17, >= 2.3.0, < 2.3.2, >= 2.0.0, < 2.2.10, < 1.2.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP4 python-jupyterlab 2.2.10-bp154.2.3.1 openSUSE-SU-2022:10075-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.4 python-jupyterlab 2.2.10-bp154.2.3.1 openSUSE-SU-2022:10075-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI jupyterlab < 1.2.21 1.2.21 GHSA-4952-p58q-6crx
PyPI jupyterlab >= 2.0.0a0, < 2.2.10 2.2.10 GHSA-4952-p58q-6crx
PyPI jupyterlab >= 2.3.0a0, < 2.3.2 2.3.2 GHSA-4952-p58q-6crx
PyPI jupyterlab >= 3.0.0a0, < 3.0.17 3.0.17 GHSA-4952-p58q-6crx
PyPI jupyterlab >= 3.1.0a0, < 3.1.4 3.1.4 GHSA-4952-p58q-6crx
PyPI jupyterlab < 1.2.21 · >= 2, < 2.2.10 · >= 2.3, < 2.3.2 · >= 3, < 3.0.17 · >= 3.1, < 3.1.4 1.2.21, 2.2.10, 2.3.2, 3.0.17, 3.1.4 PYSEC-2021-130
PyPI notebook < 5.7.11 5.7.11 GHSA-4952-p58q-6crx
PyPI notebook >= 6.0.0, < 6.4.1 6.4.1 GHSA-4952-p58q-6crx
PyPI notebook < 5.7.11 · >= 6.0.0, < 6.4.1 5.7.11, 6.4.1 PYSEC-2026-688

Advisories 1

References