{"id":"CVE-2018-8768","aliases":["DEBIAN-CVE-2018-8768","DLA-2432-1","EUVD-2018-0106","GHSA-6cwv-x26c-w2q4","MGASA-2018-0182","PYSEC-2018-57","UBUNTU-CVE-2018-8768","USN-4855-1","openSUSE-SU-2024:11242-1"],"status":"published","title":"Jupyter Notebook file bypasses sanitization, executes JavaScript","description":"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.","severity":{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01004,"percentile":0.63186,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2018-03-18T06:00:00Z","modified":"2026-11-06T02:45:06Z","fixes":[{"ecosystem":"PyPI","package":"notebook","fixed_in":["5.4.1"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"ipython","fixed_in":["5.1.0-2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"ipython","fixed_in":["5.1.0-2"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"ipython","fixed_in":["5.1.0-2"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"jupyter-notebook","fixed_in":["5.4.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"jupyter-notebook","fixed_in":["5.4.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"jupyter-notebook","fixed_in":["5.4.1-1"],"sources":["osv"]},{"ecosystem":"Mageia:6","package":"jupyter-notebook","fixed_in":["4.2.0-1.1.mga6"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"ipython","fixed_in":["2.4.1-1ubuntu0.1~esm2"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"notebook","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.4.1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"ipython","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.1.0-2"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"ipython","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.1.0-2"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"ipython","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.1.0-2"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"jupyter-notebook","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.4.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"jupyter-notebook","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.4.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"jupyter-notebook","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.4.1-1"}]}]},{"source":"osv","ecosystem":"Debian:9","package":"jupyter-notebook","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.3-4+deb9u1"}]}],"versions":["4.2.3-4"],"bundled":3},{"source":"osv","ecosystem":"PyPI","package":"notebook","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.4.1"}]}],"versions":["0.0.0","4.0.0","4.0.1","4.0.2","4.0.4","4.0.5","4.0.6","4.1.0","4.2.0","4.2.0b1","4.2.1","4.2.2","4.2.3","4.3.0","4.3.1","4.3.2","4.4.0","4.4.1","5.0.0","5.0.0b1","5.0.0b2","5.0.0rc1","5.0.0rc2","5.1.0","5.1.0rc1","5.1.0rc2","5.1.0rc3","5.2.0","5.2.0rc1","5.2.1","5.2.1rc1","5.2.2","5.3.0","5.3.0rc1","5.3.1","5.4.0"]},{"source":"osv","ecosystem":"Mageia:6","package":"jupyter-notebook","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.0-1.1.mga6"}]}]},{"source":"osv","ecosystem":"PyPI","package":"notebook","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.4.1"}]}],"versions":["0.0.0","4.0.0","4.0.1","4.0.2","4.0.4","4.0.5","4.0.6","4.1.0","4.2.0","4.2.0b1","4.2.1","4.2.2","4.2.3","4.3.0","4.3.1","4.3.2","4.4.0","4.4.1","5.0.0","5.0.0b1","5.0.0b2","5.0.0rc1","5.0.0rc2","5.1.0","5.1.0rc1","5.1.0rc2","5.1.0rc3","5.2.0","5.2.0rc1","5.2.1","5.2.1rc1","5.2.2","5.3.0","5.3.0rc1","5.3.1","5.4.0"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"ipython","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.1-1ubuntu0.1~esm2"}]}],"versions":["2.3.0-2ubuntu1","2.3.0-2ubuntu2","2.4.1-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"ipython","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.1-1ubuntu0.1~esm2"}]}],"versions":["2.3.0-2ubuntu1","2.3.0-2ubuntu2","2.4.1-1"]}],"products":[{"vendor":"jupyter","product":"notebook"}],"references":[{"url":"http://openwall.com/lists/oss-security/2018/03/15/2","tags":["x_refsource_CONFIRM","x_transferred","Mailing List","Third Party Advisory","advisory","web","report"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/11/msg00033.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-8768","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/notebook/PYSEC-2018-57.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-6cwv-x26c-w2q4","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-8768","tags":["advisory"]},{"url":"https://github.com/jupyter/notebook","tags":["package"]},{"url":"https://advisories.mageia.org/MGASA-2018-0182.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=22780","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-8768","tags":["report"]},{"url":"http://www.openwall.com/lists/oss-security/2018/03/15/2","tags":["report"]},{"url":"https://github.com/jupyter/notebook/commit/4e79ebb49acac722b37b03f1fe811e67590d3831","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-4855-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-8768","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2016-6524","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-9971","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-14041","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-8768","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-10255","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-11358","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2018-8768","description":"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.","status":"published","published":"2018-03-18T06:00:00Z","modified":"2024-08-05T07:02:26.092Z","updated_at":"2026-11-02T14:35:04.172099Z"}],"euvd":[{"id":"EUVD-2018-0106","description":"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.","status":"published","published":"2018-03-18T06:00:00Z","modified":"2024-08-05T07:02:26Z","updated_at":"2026-11-03T02:40:02.008103Z"}],"ghsa":[{"id":"GHSA-6cwv-x26c-w2q4","title":"Jupyter Notebook file bypasses sanitization, executes JavaScript","description":"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.","status":"published","published":"2018-07-12T12:00:00Z","modified":"2024-09-27T19:51:03Z","cvss":[{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"high"},{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T14:38:06.988799Z"}],"nvd":[{"id":"CVE-2018-8768","description":"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.","status":"published","published":"2018-03-18T06:29:00.487Z","modified":"2026-06-17T02:05:21.257Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:04:24.264003Z"}],"osv":[{"id":"CVE-2018-8768","description":"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.","status":"published","published":"2018-03-18T06:29:00.487Z","modified":"2026-11-06T02:45:06.706228327Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-06T03:04:11.655443Z"},{"id":"DEBIAN-CVE-2018-8768","description":"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.","status":"published","published":"2018-03-18T06:29:00.487Z","modified":"2026-10-23T18:03:09.442394219Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:31.170944Z"},{"id":"GHSA-6cwv-x26c-w2q4","title":"Jupyter Notebook file bypasses sanitization, executes JavaScript","description":"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.","status":"published","published":"2018-07-12T12:00:00Z","modified":"2024-12-07T05:39:53.49861Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"},{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"high"}],"updated_at":"2026-11-02T15:46:39.618611Z"},{"id":"UBUNTU-CVE-2018-8768","description":"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.","status":"published","published":"2018-03-18T06:29:00Z","modified":"2026-02-04T02:25:31.315914Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:18.772093Z"},{"id":"DLA-2432-1","title":"jupyter-notebook - security update","status":"published","published":"2020-11-04T00:00:00Z","modified":"2026-03-09T01:18:22.797336Z","updated_at":"2026-11-02T15:46:10.712745Z"},{"id":"MGASA-2018-0182","title":"Updated jupyter-notebook packages fix security vulnerability","description":"CVE-2018-8768: In Jupyter Notebook before 5.4.1, a maliciously forged\nnotebook file can bypass sanitization to execute JavaScript in the\nnotebook context. Specifically, invalid HTML is 'fixed' by jQuery after\nsanitization, making it dangerous.\n","status":"published","published":"2018-03-26T20:21:11Z","modified":"2026-04-16T06:22:22.67535564Z","updated_at":"2026-11-02T15:49:40.442238Z"},{"id":"openSUSE-SU-2024:11242-1","title":"jupyter-notebook-6.2.0-1.4 on GA media","description":"These are all security issues fixed in the jupyter-notebook-6.2.0-1.4 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T04:10:10.662675Z","updated_at":"2026-11-02T16:58:34.894275Z"},{"id":"PYSEC-2018-57","description":"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.","status":"published","published":"2018-03-18T06:29:00Z","modified":"2023-11-08T04:00:29.830061Z","updated_at":"2026-11-02T15:52:52.192131Z"},{"id":"USN-4855-1","title":"ipython vulnerability","description":"It was discovered that IPython did not properly sanitize certain input. If\na user were tricked into opening a specially crafted notebook file, a\nremote attacker could possibly use this issue to execute arbitrary code.\n","status":"published","published":"2021-03-15T22:41:35Z","modified":"2026-06-25T13:30:31.735798173Z","updated_at":"2026-11-02T16:58:15.159055Z"}]}}
