{"answers":{"affected":"3 open source packages ship an affected version, including bleach. It affects 1 product.","exploited":"There is no known exploitation of CVE-2018-7753 in the wild and no public exploit code.","fix":"Upgrade bleach to 2.1.3 or later.","what":"CVE-2018-7753 is a critical cross-site scripting vulnerability in n/a, published on 7 Mar 2018. 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-7753 and fix it if it is affected.\n\nWhat it is: CVE-2018-7753 is a critical cross-site scripting vulnerability in n/a, published on 7 Mar 2018. 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-7753 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- bleach (PyPI): affected from 2.1; fixed in 2.1.3\n- bleach (PyPI): affected from 2.1.0; fixed in 2.1.3\n- bleach (PyPI): affected from 2.1.0; fixed in 2.1.3\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-7753/ (Markdown: https://insights.sbomify.com/CVE-2018-7753/index.md)","id":"CVE-2018-7753","markdown":"https://insights.sbomify.com/CVE-2018-7753/index.md","name":"CVE-2018-7753","record":{"aliases":["DEBIAN-CVE-2018-7753","GHSA-m9mq-p2f9-cfqv","PYSEC-2018-51","UBUNTU-CVE-2018-7753"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Python HTML sanitizer","requires_auth":"none","summary":"Attackers can bypass URI sanitization in Bleach using character entities to inject malicious scripts, leading to cross-site scripting attacks.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"bleach","vendor":"mozilla"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"An issue was discovered in Bleach 2.1.x before 2.1.3. Attributes that have URI values weren't properly sanitized if the values contained character entities. Using character entities, it was possible to construct a URI value with a scheme that was not allowed that would slide through unsanitized.","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":"Bleach URI Scheme Restriction Bypass","id":"CVE-2018-7753","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2018"},"n_packages":3,"n_references":3,"next":{"headline":"Information disclosure in n/a","id":"CVE-2018-7754"},"packages":[{"ecosystem":"PyPI","fixed":["2.1.3"],"introduced":["2.1"],"last_affected":[],"package":"bleach","purl":"pkg:pypi/bleach","source":"PYSEC-2018-51"},{"ecosystem":"PyPI","fixed":["2.1.3"],"introduced":["2.1.0"],"last_affected":[],"package":"bleach","purl":null,"source":"GHSA-m9mq-p2f9-cfqv"},{"ecosystem":"PyPI","fixed":["2.1.3"],"introduced":["2.1.0"],"last_affected":[],"package":"bleach","purl":"pkg:pypi/bleach","source":"GHSA-m9mq-p2f9-cfqv"}],"prev":{"headline":"Memory corruption in n/a","id":"CVE-2018-7752"},"products":["n/a"],"published":"2018-03-07","related":[{"cvss_score":7.5,"headline":"regular expression denial-of-service (ReDoS) in Bleach","id":"CVE-2020-6817","kev_date_added":null,"published":"2023-02-16"},{"cvss_score":6.1,"headline":"Cross-site scripting in Bleach","id":"CVE-2021-23980","kev_date_added":null,"published":"2023-02-16"}],"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-09-17","vendors":["n/a"]},"summary":"Attackers can bypass URI sanitization in Bleach using character entities to inject malicious scripts, leading to cross-site scripting attacks.","url":"https://insights.sbomify.com/CVE-2018-7753/"}