KeygraphLabs · CVE MCP

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.

CVSS
7.8
high, from NVD
EPSS
1.00%
percentile 64.1%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

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-18Published
2018-03-18Package advisory PYSEC-2018-57
2018-07-12Package advisory GHSA-6cwv-x26c-w2q4
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 1.00%
2026-12-04Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-6cwv-x26c-w2q4notebook (PyPI)5.4.1
PYSEC-2018-57notebook (PyPI)5.4.1

Also known as: GHSA-6cwv-x26c-w2q4, PYSEC-2018-57

Related

CVEPublishedCVSSSummary
CVE-2026-1028322026-10-134.2JupyterLab: Command link trust prompt in JupyterLab can trust a document other than the one clicked
CVE-2026-1028312026-09-298.1JupyterLab: Cross-site scripting (XSS) in JupyterLab via notebook cells pasted from the system clipboard
CVE-2026-425572026-05-139.6jupyterlab: Command linker attributes in HTML enable one-click command execution from untrusted content
CVE-2026-401712026-05-068.4Jupyter Notebook and JupyterLab token theft via stored XSS in help command linker
CVE-2024-438052024-08-286.1HTML injection in Jupyter Notebook and JupyterLab leading to DOM Clobbering
CVE-2024-224212024-01-196.5Potential authentication and CSRF tokens leak in JupyterLab
CVE-2024-224202024-01-196.1Stored cross site scripting in Markdown Preview in JupyterLab
CVE-2022-292382022-06-144.3Forced 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.

NVD · CVE.org