Findings

CVE-2026-104250

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.

Published Oct 13, 2026 · updated Oct 15, 2026

### Summary When parses an untrusted document and outputs the result as HTML, malicious markup contained in the document (e.g. ) is left in the output HTML without escaping. When that output is displayed in a browser, the script embedded in the document executes in the viewer's browser. ### Details (and the VLM partitioner) preserve the input document's element tags, attributes, and text into , and outputs that as an HTML document. The function that builds HTML on this path, in , performs no escaping at all. As a result, event handlers such as / / originating from the input document are left in the output HTML as-is (literal tags are stripped by the parser, but attribute-based vectors and URLs are not). In addition, link URLs are not scheme-filtered, so is also emitted. Relevant source: ( , , ); ( ); ( ). ### PoC Environment: , 0.23.3. output body — the unescaped vectors survive: Opening in a browser fires automatically (via ), with no interaction. Per-vector confirmation (each payload labelled, each verified in a browser): | Vector | Trigger | Cause | |---|---|---| | | open file (auto) | element not escaped | | (via ) | open file (auto) | attribute value not escaped ( breakout) | | | click | link URL scheme not filtered | | | hover | source attribute preserved as-is | ### Impact Stored XSS caused by improper output encoding. Anyone who renders the HTML or generated from an untrusted document is affected. In an ingestion pipeline where uploaded documents are parsed and a staff member reviews their contents in a web UI, a low-privileged or external submitter can inject malicious HTML; when a privileged reviewer later opens the parsed result, fires in their session with no interaction, leading to cross-record information disclosure and privileged actions.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Oct 13, 2026 · NIST NVD

    Detected

    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 doc

  2. Oct 14, 2026 · NIST NVD

    Updated

    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 doc

  3. Oct 15, 2026 · GitHub Advisory Database

    Fix available

    unstructured fixed in 0.24.1

  4. Oct 15, 2026 · GitHub Advisory Database

    Fix available

    unstructured fixed in 0.24.1

  5. Oct 15, 2026 · GitHub Advisory Database

    Updated

    ### Summary When parses an untrusted document and outputs the result as HTML, malicious markup contained in the document (e.g. ) is left in the output HTML without escaping. When that output is displayed in a browser, the script embedded in the document executes in the viewer's browser. ### Details (and the VLM partitioner) preserve the input document's element tags, attributes, and text into , an

Affected

  • PyPI unstructured0 → 0.24.1
  • pip unstructured<= 0.24.0
  • pypi unstructuredversion unspecified

Sources

  • CVE.orgVulnerability recordCVE-2026-104250

    Official CVE identifier

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2026-104250

    30-day exploitation probability 0.2%

    first.org
  • GitHub Advisory DatabasePackage advisoryGHSA-v5mq-3xhg-98m9

    GitHub Advisory Database record mirrored by OSV.

    github.com
  • GitLab Advisory DatabasePackage advisoryCVE-2026-104250

    When unstructured parses an untrusted document and outputs the result as HTML, malicious markup contained in the document (e.g. ) is left in the output HTML without escaping. When that output is displayed in a browser, the script embedded in the document executes in the viewer's browser.

    advisories.gitlab.com
  • NIST NVDVulnerability recordCVE-2026-104250

    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 tag

    nvd.nist.gov
  • OSV.devPackage advisoryGHSA-v5mq-3xhg-98m9

    unstructured: Stored XSS via unescaped HTML generation

    osv.dev

References