CVE-2018-8768 · mitre
CVE-2018-8768
In Jupyter Notebook before 5.4.1, a maliciously forged notebook file can bypass sanitization to execute JavaScript in the notebook context. Specifically, invalid HTML is 'fixed' by jQuery after sanitization, making it dangerous.
Published 2018-03-18, last changed 2026-06-17.
How to fix
Upgrade to a fixed version: notebook 5.4.1 (PyPI). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in jupyter/notebook by 70878c2d24, 4750ec3e17. The fix changed source code, but no function could be located in it. Regression tests: jupyterlab/tests/mock_packages/extension/package.json, jupyterlab/tests/mock_packages/interop/consumer/package.json, jupyterlab/tests/mock_packages/interop/provider/package.json, jupyterlab/tests/mock_packages/interop/token/package.json. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).
Timeline
| 2018-03-18 | Published |
| 2018-03-18 | Package advisory PYSEC-2018-57 |
| 2018-07-12 | Package advisory GHSA-6cwv-x26c-w2q4 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 1.00% |
| 2026-12-04 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-6cwv-x26c-w2q4 | notebook (PyPI) | 5.4.1 |
| PYSEC-2018-57 | notebook (PyPI) | 5.4.1 |
Also known as: GHSA-6cwv-x26c-w2q4, PYSEC-2018-57
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-102832 | 2026-10-13 | 4.2 | JupyterLab: Command link trust prompt in JupyterLab can trust a document other than the one clicked |
| CVE-2026-102831 | 2026-09-29 | 8.1 | JupyterLab: Cross-site scripting (XSS) in JupyterLab via notebook cells pasted from the system clipboard |
| CVE-2026-42557 | 2026-05-13 | 9.6 | jupyterlab: Command linker attributes in HTML enable one-click command execution from untrusted content |
| CVE-2026-40171 | 2026-05-06 | 8.4 | Jupyter Notebook and JupyterLab token theft via stored XSS in help command linker |
| CVE-2024-43805 | 2024-08-28 | 6.1 | HTML injection in Jupyter Notebook and JupyterLab leading to DOM Clobbering |
| CVE-2024-22421 | 2024-01-19 | 6.5 | Potential authentication and CSRF tokens leak in JupyterLab |
| CVE-2024-22420 | 2024-01-19 | 6.1 | Stored cross site scripting in Markdown Preview in JupyterLab |
| CVE-2022-29238 | 2022-06-14 | 4.3 | Forced Browsing in Jupyter Notebook |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2018-8768, or call /api/v1/vulnerabilities/CVE-2018-8768. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.