{"id":"CVE-2021-32797","aliases":["BIT-jupyterlab-2021-32797","GHSA-4952-p58q-6crx","PYSEC-2021-130","PYSEC-2026-688"],"url":"https://o3.security/vulnerability/CVE-2021-32797","summary":"JupyterLab: XSS due to lack of sanitization of the action attribute of an html <form>","details":"### Impact\n\nUntrusted notebook can execute code on load. This is a remote code execution, but requires user action to open a notebook.\n\n### Patches\n\nPatched in the following versions: 3.1.4, 3.0.17, 2.3.2, 2.2.10, 1.2.21.\n\n### References\n\n[OWASP Page on Restricting Form Submissions](https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html)\n\n### For more information\n\nIf you have any questions or comments about this advisory, or vulnerabilities to report, please email our security list security@ipython.org.\n\nCredit: Guillaume Jeanne from Google\n","published":"2021-08-09T21:15:08.140Z","modified":"2026-08-07T11:48:56.353221791Z","cvss":{"score":9.6,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"PyPI","name":"jupyterlab","fixedVersion":"1.2.21"},{"ecosystem":"PyPI","name":"jupyterlab","fixedVersion":"2.2.10"},{"ecosystem":"PyPI","name":"jupyterlab","fixedVersion":"2.3.2"},{"ecosystem":"PyPI","name":"jupyterlab","fixedVersion":"3.0.17"},{"ecosystem":"PyPI","name":"jupyterlab","fixedVersion":"3.1.4"},{"ecosystem":"PyPI","name":"notebook","fixedVersion":"5.7.11"},{"ecosystem":"PyPI","name":"notebook","fixedVersion":"6.4.1"}],"fix":{"url":"https://github.com/jupyterlab/jupyterlab/commit/504825938c0abfa2fb8ff8d529308830a5ae42ed","label":"jupyterlab/jupyterlab@5048259"},"references":[{"type":"ADVISORY","url":"https://github.com/jupyterlab/jupyterlab/security/advisories/GHSA-4952-p58q-6crx"},{"type":"EVIDENCE","url":"https://github.com/jupyterlab/jupyterlab/commit/504825938c0abfa2fb8ff8d529308830a5ae42ed"},{"type":"WEB","url":"https://github.com/google/security-research/security/advisories/GHSA-c469-p3jp-2vhx"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32797"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/jupyterlab/PYSEC-2021-130.yaml"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T11:48:56.353221791Z"}}