Skip to main content
← All vulnerabilities
CVE-2021-32797PYSEC-2021-130BIT-JUPYTERLAB-2021-32797GHSA-4952-P58Q-6CRXPYSEC-2026-688

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.1.4, 3.0.17, 2.3.2, 2.2.10, 1.2.1, and 3 more
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • jupyterlab jupyterlab

    From 3.1.0 · fixed in 3.1.4; From 3.0.0 · fixed in 3.0.17; From 2.3.0 · fixed in 2.3.2; From 2.0.0 · fixed in 2.2.10; fixed in 1.2.1

  • jupyterlabPyPI

    fixed in 1.2.21; From 2 · fixed in 2.2.10; From 2.3 · fixed in 2.3.2; From 3 · fixed in 3.0.17; From 3.1 · fixed in 3.1.4

  • jupyterlabPyPI

    fixed in 1.2.21

  • jupyterlabPyPI

    From 2.0.0a0 · fixed in 2.2.10

  • jupyterlabPyPI

    From 2.3.0a0 · fixed in 2.3.2

  • jupyterlabPyPI

    From 3.0.0a0 · fixed in 3.0.17

  • jupyterlabPyPI

    From 3.1.0a0 · fixed in 3.1.4

  • notebookPyPI

    fixed in 5.7.11

  • notebookPyPI

    From 6.0.0 · fixed in 6.4.1

  • notebookPyPI

    fixed in 5.7.11; From 6.0.0 · fixed in 6.4.1

References 2

GitHub · jupyterlab/jupyterlab