{"id":"CVE-2018-8768","published":"2018-03-18T06:00:00Z","modified":"2024-08-05T07:02:26Z","title":"In Jupyter Notebook before 5.4.1, a maliciously forged notebook file can bypass sanitization to execute JavaScript in…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01004,"percentile":0.63777,"provenance":"source"},"cwes":[],"references":[{"url":"http://openwall.com/lists/oss-security/2018/03/15/2","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/11/msg00033.html","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":12.8,"factors":[{"name":"EPSS percentile","points":12.76}]},"affected":[{"ecosystem":"PyPI","package":"notebook","vulnerableRanges":["<5.4.1"],"patched":["5.4.1"],"from":["GHSA-6cwv-x26c-w2q4","PYSEC-2018-57"],"provenance":"source"}],"summary":{"text":"The flaw lies in Jupyter Notebook, in its handling of notebook files: invalid HTML is \"fixed\" by jQuery after sanitization has already run, so the sanitized output can become dangerous. An attacker who can get a maliciously forged notebook file opened can bypass the sanitization and execute JavaScript in the notebook context.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:59:38Z"},"euvd":{"id":"EUVD-2018-0106","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2015-6938","published":"2015-09-21","fixed":"4.0.5","kev":false},{"cve":"CVE-2015-7337","published":"2015-09-29","fixed":"4.0.5","kev":false},{"cve":"CVE-2018-8768","published":"2018-03-18","fixed":"5.4.1","kev":false},{"cve":"CVE-2018-21030","published":"2019-10-31","fixed":"5.5.0","kev":false,"link":{"from":"CVE-2018-8768","to":"CVE-2018-21030","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:notebook","fromFixed":"5.4.1","toFixed":"5.5.0rc1","daysApart":592}]}},{"cve":"CVE-2018-19351","published":"2018-11-18","fixed":"5.7.1","kev":false},{"cve":"CVE-2018-19352","published":"2018-11-18","fixed":"5.7.2","kev":false}],"package":"PyPI:notebook"}}