{"answers":{"affected":"3 open source packages ship an affected version, including notebook. It affects 1 product.","exploited":"There is no known exploitation of CVE-2018-21030 in the wild and no public exploit code.","fix":"Upgrade notebook to a fixed version for your release line: 5.5.0 or 5.5.0rc1.","what":"CVE-2018-21030 is a medium-severity cross-site scripting vulnerability in n/a, published on 31 Oct 2019. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-21030 and fix it if it is affected.\n\nWhat it is: CVE-2018-21030 is a medium-severity cross-site scripting vulnerability in n/a, published on 31 Oct 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2018-21030 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- notebook (PyPI): affected all versions; fixed in 5.5.0\n- notebook (PyPI): affected all versions; fixed in 5.5.0rc1\n- notebook (PyPI): affected all versions; fixed in 5.5.0rc1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2018-21030/ (Markdown: https://insights.sbomify.com/CVE-2018-21030/index.md)","id":"CVE-2018-21030","markdown":"https://insights.sbomify.com/CVE-2018-21030/index.md","name":"CVE-2018-21030","record":{"aliases":["DEBIAN-CVE-2018-21030","GHSA-jqwc-jm56-wcwj","PYSEC-2019-157","UBUNTU-CVE-2018-21030"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Jupyter Notebook","requires_auth":"none","summary":"An attacker can execute arbitrary scripts via XSS in SVG documents due to missing CSP headers in Jupyter Notebook.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"notebook","vendor":"jupyter"}],"cvss":{"score":5.3,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"Jupyter Notebook before 5.5.0 does not use a CSP header to treat served files as belonging to a separate origin. Thus, for example, an XSS payload can be placed in an SVG document.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Cross-site scripting in Jupyter Notebook","id":"CVE-2018-21030","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2018"},"n_packages":3,"n_references":3,"next":{"headline":"Auth bypass in n/a","id":"CVE-2018-21031"},"packages":[{"ecosystem":"PyPI","fixed":["5.5.0"],"introduced":["0"],"last_affected":[],"package":"notebook","purl":"pkg:pypi/notebook","source":"PYSEC-2019-157"},{"ecosystem":"PyPI","fixed":["5.5.0rc1"],"introduced":["0"],"last_affected":[],"package":"notebook","purl":null,"source":"GHSA-jqwc-jm56-wcwj"},{"ecosystem":"PyPI","fixed":["5.5.0rc1"],"introduced":["0"],"last_affected":[],"package":"notebook","purl":"pkg:pypi/notebook","source":"GHSA-jqwc-jm56-wcwj"}],"prev":{"headline":"Security feature bypass in n/a","id":"CVE-2018-21029"},"products":["n/a"],"published":"2019-10-31","related":[{"cvss_score":10,"headline":"Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) in notebook","id":"CVE-2021-32798","kev_date_added":null,"published":"2021-08-09"},{"cvss_score":7.8,"headline":"Jupyter Notebook file bypasses sanitization, executes JavaScript","id":"CVE-2018-8768","kev_date_added":null,"published":"2018-03-18"},{"cvss_score":7.5,"headline":"Insertion of Sensitive Information into Log File affects Jupyter Notebook","id":"CVE-2022-24758","kev_date_added":null,"published":"2022-03-31"},{"cvss_score":6.1,"headline":"Jupyter Notebook open redirect vulnerability","id":"CVE-2019-10856","kev_date_added":null,"published":"2019-04-04"},{"cvss_score":6.1,"headline":"Jupyter Notebook XSS via untrusted notebooks","id":"CVE-2018-19351","kev_date_added":null,"published":"2018-11-18"},{"cvss_score":6.1,"headline":"Jupyter Notebook XSS via directory name","id":"CVE-2018-19352","kev_date_added":null,"published":"2018-11-18"},{"cvss_score":5.4,"headline":"Improper Neutralization of Input During Web Page Generation in Jupyter Notebook","id":"CVE-2019-9644","kev_date_added":null,"published":"2019-03-12"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"An attacker can execute arbitrary scripts via XSS in SVG documents due to missing CSP headers in Jupyter Notebook.","url":"https://insights.sbomify.com/CVE-2018-21030/"}