Vulnerability · Published Aug 9, 2021 · Assigned by GitHub_M

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

High 7.4

In plain English

A high-severity cross-site scripting in jupyterlab from jupyterlab. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.7% (higher than 86% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.4High
Exploit odds (30 days)2.7%top 14.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIjupyterlab1.2.21GHSA-4952-p58q-6crx
PyPIjupyterlab2.2.10GHSA-4952-p58q-6crx
PyPIjupyterlab2.3.2GHSA-4952-p58q-6crx
PyPIjupyterlab3.0.17GHSA-4952-p58q-6crx
PyPIjupyterlab3.1.4GHSA-4952-p58q-6crx
PyPIjupyterlab1.2.21, 2.2.10, 2.3.2, 3.0.17, 3.1.4PYSEC-2021-130
PyPInotebook6.4.1GHSA-4952-p58q-6crx
PyPInotebook5.7.11, 6.4.1PYSEC-2026-688
PyPInotebook5.7.11GHSA-4952-p58q-6crx

Affected products (as reported)

VendorProductVersions
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

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

References