🛡️ CVE-2021-32798 — jupyter-base-notebook
Description
Special Element Injection in notebook
Impact
Untrusted notebook can execute code on load. This is a remote code execution, but requires user action to open a notebook.
Patches
5.7.11, 6.4.1
References
[OWASP Page on Injection Prevention](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html#injection-prevention-rules)
For more information
If you have any questions or comments about this advisory, or vulnerabilities to report, please email our security list [email protected].
Credit: Guillaume Jeanne from Google
Example:
A notebook with the following content in a cell and it would display an alert when opened for the first time in Notebook (in an untrusted state):
```
{ "cell_type": "code", "execution_count": 0, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<select><iframe></select><img src=x: onerror=alert('xss')>\n"], "text/plain": [] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "" ] }
````
Affected software
CVE-2021-32798 is recorded against 3 packages.
- jupyter-base-notebook
- jupyter-notebook
- notebook (from 6.0.0 up to 6.4.1)
Timeline and source
Published on 6 March 2024 and last revised on 20 May 2025. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
CVE-2021-32798 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| jupyter-base-notebook | — | — |
| jupyter-notebook | — | — |
| notebook | 6.0.0 | 6.4.1 |
References
Similar Threats
- Unknown CGA-3hj3-7fr9-2v3j
- Unknown CGA-48f2-3qh9-f9x4
- Unknown CGA-c7jq-4mq6-p587
- Unknown CGA-jc89-hf9m-4f4f
- Unknown CGA-fp68-23h9-4cv5
More CVE 2021 advisories
Browse all of CVE 2021 in the advisory index.
Exploit Protection
Are you running jupyter-base-notebook?
CVE-2021-32798 carries CVSS 9.5 Critical rating. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.
Check My Site For CVE-2021-32798 →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.