{"answers":{"affected":"2 open source packages ship an affected version, including justhtml.","exploited":"There is no known exploitation of CVE-2026-7808 in the wild and no public exploit code.","fix":"Upgrade justhtml to 1.16.0 or later.","what":"CVE-2026-7808 is a critical cross-site scripting vulnerability in EmilStenstrom justhtml, published on 23 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-7808 and fix it if it is affected.\n\nWhat it is: CVE-2026-7808 is a critical cross-site scripting vulnerability in EmilStenstrom justhtml, published on 23 Aug 2026. 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-2026-7808 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- justhtml (PyPI): affected all versions; fixed in 1.16.0\n- justhtml (PyPI): affected all versions; fixed in 1.16.0\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-2026-7808/ (Markdown: https://insights.sbomify.com/CVE-2026-7808/index.md)","id":"CVE-2026-7808","markdown":"https://insights.sbomify.com/CVE-2026-7808/index.md","name":"CVE-2026-7808","record":{"aliases":["GHSA-4p64-v8f5-r2gx","GHSA-fj35-9vw4-h76v"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"HTML sanitization library","requires_auth":"none","summary":"Attackers can bypass HTML sanitization in justhtml to inject scripts, leading to cross-site scripting in applications using advanced or non-default sanitization configurations.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[],"cvss":{"score":9.3,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"justhtml before 1.16.0 contains multiple HTML sanitization bypass issues that can allow active/dangerous content (e.g., script or style) to survive sanitization, potentially leading to cross-site scripting. The issues primarily affect advanced usage rather than the default JustHTML(..., sanitize=True) path for ordinary parsed HTML: mutating or reusing sanitization policy objects (including exported defaults) could weaken later sanitization; programmatic DOM input to sanitize()/sanitize_dom() could miss mixed-case tag names (e.g., ScRiPt, StYlE); crafted programmatic doctype names could serialize into active markup; and custom policies preserving SVG or MathML could allow animation elements, presentation attributes with external url(...) references, or DOM trees mislabeled as namespace=\"html\" to bypass foreign-content checks. Fixed in 1.16.0.","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":false,"headline":"justhtml before 1.16.0 Multiple Security Issues via Sanitization","id":"CVE-2026-7808","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.","id":"CVE-2026-7809"},"packages":[{"ecosystem":"PyPI","fixed":["1.16.0"],"introduced":["0"],"last_affected":[],"package":"justhtml","purl":null,"source":"GHSA-4p64-v8f5-r2gx"},{"ecosystem":"PyPI","fixed":["1.16.0"],"introduced":["0"],"last_affected":[],"package":"justhtml","purl":"pkg:pypi/justhtml","source":"GHSA-4p64-v8f5-r2gx"}],"prev":{"headline":"SmarterTools SmarterMail \u003c Build 9560 Server Local File Inclusion via the /api/v1/report/summary/{type} API","id":"CVE-2026-7807"},"products":["justhtml"],"published":"2026-08-23","related":[],"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-24","vendors":["EmilStenstrom"]},"summary":"Attackers can bypass HTML sanitization in justhtml to inject scripts, leading to cross-site scripting in applications using advanced or non-default sanitization configurations.","url":"https://insights.sbomify.com/CVE-2026-7808/"}