VDB

CVE-2021-32797

CVE-2021-32797 PUBLISHED CVSS 7.4 HIGH

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

Reported by github_m · Published August 9, 2021

notebook is fixed in 6.4.1 and 5.7.11 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
notebookPyPI6.4.1, 5.7.11
jupyterlabPyPI504825938c0abfa2fb8ff8d529308830a5ae42ed, 3.1.4, 3.0.17, 2.3.2, 2.2.10, 1.2.21
jupyterlabArch Linux3.1.4-1
jupyterlabjupyter3.1.4, 3.0.17, 2.3.2, 2.2.10, 1.2.21
jupyterlabBitnami3.1.4, 3.0.17, 2.3.2, 2.2.10, 1.2.21

Risk scores

CVSS 3.1
7.4
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

Affected products

VendorProductVersions
jupyterlabjupyterlab>= 3.1.0, < 3.1.4, >= 3.0.0, < 3.0.17, >= 2.3.0, < 2.3.2
archjupyterlab0
PyPInotebook0, 6.0.0
PyPIjupyterlab3.1.0a0, 0, 2.0.0a0
jupyterlabjupyterlab3.1.0, 3.0.0, 2.3.0

Timeline

  • Aug 9, 2021 CVE Published
  • Aug 10, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 10, 2026 Security Advisory (2 in total, the first dated here)
  • Jun 17, 2026 CVE Updated
  • Aug 1, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-32797
vulnetix vdb fixes CVE-2021-32797

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-32797/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›