cve.bz

CVE-2026-104250 unstructured-io unstructured: Cross-site Scripting

6.1 mediumEPSS 0.2%Fix available

Medium (6.1) in unstructured-io unstructured. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in unstructured 0.24.1.

On this page
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.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 14th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-10-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
CWE-116 Improper Encoding or Escaping of Output
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • unstructured (PyPI): fixed in 0.24.1

Ask an AI about this CVE

Show the promptExplain CVE-2026-104250 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-104250?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-104250?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-104250 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Unstructured-IO unstructured< 0.24.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-v5mq-3xhg-98m9PyPIunstructured<0.24.10.24.1

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A moderate-impact cross-site scripting (XSS) flaw was found in the unstructured open-source library, which ingests and pre-processes documents such as PDFs, HTML, and Word files. When unstructured parses an untrusted document and converts the parsed elements into HTML, it does not escape the document's tags, attributes, text, and link targets, and it does not reject unsafe URL schemes; event-handler attributes, attribute-breakout markup, and javascript: links can therefore survive into the generated HTML. A remote, unauthenticated attacker could exploit this by submitting a crafted document that, when the processed output is rendered in a web browser, executes attacker-controlled script in the viewer's browser session - including in document-ingestion workflows where a privileged reviewer opens submitted content - potentially allowing theft of sensitive session data and unauthorized actions in the victim's browser context. This flaw is rated Moderate severity (CVSS 6.1, AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N), consistent with the upstream assessment. No Red Hat products are currently recorded as affected by this flaw; the issue affects the upstream unstructured project directly.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability. The upstream project has addressed this flaw; users consuming the upstream unstructured package directly should upgrade to a release that includes the upstream fix.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-104250.

Attack patterns (CAPEC)

  • CAPEC-73 User-Controlled Filename Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-104 Cross Zone Scripting Likelihood: Medium · Severity: High
  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON