Vulnerabilities / CVE-2021-32797

critical

CVE-2021-32797

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

Published Modified CWE 79
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.6CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
GHSA6.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N
Bitnami9.7CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Bitnami. Rated lower by GHSA (medium).

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 and fixed versions

SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasejupyterlab1.2.21, 2.2.10, 2.3.2, 3.0.17, 3.1.4
pip::GitHub Security Advisory pipjupyterlab, notebook1.2.21, 2.2.10, 2.3.2, 3.0.17, 3.1.4 and 1 more
Show all 3 entries from 2 sources
SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasejupyterlab1.2.21, 2.2.10, 2.3.2, 3.0.17, 3.1.4
pip::GitHub Security Advisory pipjupyterlab1.2.21, 2.2.10, 2.3.2, 3.0.17, 3.1.4
pip::GitHub Security Advisory pipnotebook5.7.11, 6.4.1

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.