AI and data stack advisories

Severe, 6 weeks1496Projects326

1496 severe, 6 weeks · 326 projects

JupyterGHSA-4952-p58q-6crx

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

Jupyter

CVE-2021-32797 · Published Aug 23, 2021 · updated Jul 8, 2026

Medium7.4
Fix: upgrade to 1.2.21 or later (7 fixed versions below)
GitHub advisory

Impact

Untrusted notebook can execute code on load. This is a remote code execution, but requires user action to open a notebook.

Patches

Patched in the following versions: 3.1.4, 3.0.17, 2.3.2, 2.2.10, 1.2.21.

References

[OWASP Page on Restricting Form Submissions](https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html)

For more information

If you have any questions or comments about this advisory, or vulnerabilities to report, please email our security list security@ipython.org.

Credit: Guillaume Jeanne from Google

Affected versions

PackageAffectedFixed in
jupyterlab
PyPI
< 1.2.211.2.21
>= 2.0.0a0, < 2.2.102.2.10
>= 2.3.0a0, < 2.3.22.3.2
>= 3.0.0a0, < 3.0.173.0.17
>= 3.1.0a0, < 3.1.43.1.4
notebook
PyPI
< 5.7.115.7.11
>= 6.0.0, < 6.4.16.4.1
Details and references

More Jupyter advisories

All Jupyter