{"answers":{"affected":"2 open source packages ship an affected version, including unstructured.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-104250 exists.","fix":"Upgrade unstructured to 0.24.1 or later.","what":"CVE-2026-104250 is a medium-severity cross-site scripting vulnerability in Unstructured-IO unstructured, published on 13 Oct 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-104250 and fix it if it is affected.\n\nWhat it is: CVE-2026-104250 is a medium-severity cross-site scripting vulnerability in Unstructured-IO unstructured, published on 13 Oct 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-104250 exists.\n\nAffected packages and fixed versions:\n- unstructured (PyPI): affected all versions; fixed in 0.24.1\n- unstructured (PyPI): affected all versions; fixed in 0.24.1\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-104250/ (Markdown: https://insights.sbomify.com/CVE-2026-104250/index.md)","id":"CVE-2026-104250","markdown":"https://insights.sbomify.com/CVE-2026-104250/index.md","name":"CVE-2026-104250","record":{"aliases":["GHSA-v5mq-3xhg-98m9"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":true,"product_category":"Python document processing library","requires_auth":"none","summary":"Attackers can execute arbitrary scripts in a viewer's browser via unescaped HTML in the unstructured library, risking account takeover in document workflows.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"description":"The unstructured library provides open-source components for ingesting and pre-processing images and text documents, such as PDFs, HTML, Word docs, and many more. Prior to 0.24.1, partition_html(html_parser_version=\"v2\") and the VLM partitioner can preserve untrusted document tags, attributes, text, and link targets in metadata.text_as_html, while elements_to_html() emits the result as an HTML document. The to_html() path in unstructured/documents/ontology.py does not escape output or reject unsafe URL schemes, allowing event-handler attributes, attribute breakout markup, and javascript: links to survive parsing. When the generated HTML or text_as_html is rendered in a browser, attacker-controlled script can execute in the viewer's origin, including in document-ingestion workflows where a privileged reviewer opens submitted content. This issue is fixed in version 0.24.1.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"unstructured: Stored XSS via unescaped HTML generation","id":"CVE-2026-104250","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"Vitess vttablet /twopcz reflected XSS","id":"CVE-2026-104252"},"packages":[{"ecosystem":"PyPI","fixed":["0.24.1"],"introduced":["0"],"last_affected":[],"package":"unstructured","purl":null,"source":"GHSA-v5mq-3xhg-98m9"},{"ecosystem":"PyPI","fixed":["0.24.1"],"introduced":["0"],"last_affected":[],"package":"unstructured","purl":"pkg:pypi/unstructured","source":"GHSA-v5mq-3xhg-98m9"}],"prev":{"headline":"Contact Form 7 Signature Addon \u003c= 4.2.2 - Unauthenticated Arbitrary File Read via Path Traversal in Email Attachments","id":"CVE-2026-104246"},"products":["unstructured"],"published":"2026-10-13","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":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-14","vendors":["Unstructured-IO"]},"summary":"Attackers can execute arbitrary scripts in a viewer's browser via unescaped HTML in the unstructured library, risking account takeover in document workflows.","url":"https://insights.sbomify.com/CVE-2026-104250/"}