CVE-2021-32797
JupyterLab: XSS due to lack of sanitization of the action attribute of an html <form>
7.4
HIGH
CVSS 3.1
EPSS 0.87%
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.
How to fix CVE-2021-32797
To remediate CVE-2021-32797, upgrade the affected package to a fixed version below.
- —upgrade to 1.2.21 or later
- —upgrade to 1.2.21 or later
- —upgrade to 504825938c0abfa2fb8ff8d529308830a5ae42ed or later
- —upgrade to 5.7.11 or later
Is CVE-2021-32797 being exploited?
Low — EPSS is 0.9%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- from 0, < 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
- from 0, < 1.2.21
- from 0, < 504825938c0abfa2fb8ff8d529308830a5ae42ed | from 0, < 1.2.21, >= 2, < 2.2.10, >= 2.3, < 2.3.2, >= 3, < 3.0.17, >= 3.1, < 3.1.4
- from 0, < 5.7.11
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N |
| osv | CVSS 3.1 | HIGH7.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N |