Skip to content

CVE-2026-104250 unstructured: Stored XSS via unescaped HTML generation

MediumCVSS 6.1 EPSS 0.23%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
pypi unstructured(PyPI) < 0.24.1; <= 0.24.0; = 0.0.1.dev0; = 0.2.0 +225 more 0.24.1 Fixed
Unstructured-IO unstructured = < 0.24.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
Unstructured-IO unstructured = < 0.24.1 No fix listed
pypi unstructured(PyPI) < 0.24.1 0.24.1
pypi unstructured(PyPI) = 0.0.1.dev0 No fix listed
pypi unstructured(PyPI) = 0.10.0 No fix listed
pypi unstructured(PyPI) = 0.10.1 No fix listed
pypi unstructured(PyPI) = 0.10.10 No fix listed
pypi unstructured(PyPI) = 0.10.11 No fix listed
pypi unstructured(PyPI) = 0.10.12 No fix listed
pypi unstructured(PyPI) = 0.10.13 No fix listed
pypi unstructured(PyPI) = 0.10.14 No fix listed
pypi unstructured(PyPI) = 0.10.15 No fix listed
pypi unstructured(PyPI) = 0.10.16 No fix listed
pypi unstructured(PyPI) = 0.10.18 No fix listed
pypi unstructured(PyPI) = 0.10.19 No fix listed
pypi unstructured(PyPI) = 0.10.19.dev18 No fix listed
pypi unstructured(PyPI) = 0.10.2 No fix listed
pypi unstructured(PyPI) = 0.10.20 No fix listed
pypi unstructured(PyPI) = 0.10.21 No fix listed
pypi unstructured(PyPI) = 0.10.22 No fix listed
pypi unstructured(PyPI) = 0.10.23 No fix listed
pypi unstructured(PyPI) = 0.10.24 No fix listed
pypi unstructured(PyPI) = 0.10.25 No fix listed
pypi unstructured(PyPI) = 0.10.26 No fix listed
pypi unstructured(PyPI) = 0.10.27 No fix listed
pypi unstructured(PyPI) = 0.10.28 No fix listed
Show 175 more
ProductAffected versionsFixed in
pypi unstructured(PyPI) = 0.10.29 No fix listed
pypi unstructured(PyPI) = 0.10.30 No fix listed
pypi unstructured(PyPI) = 0.10.4 No fix listed
pypi unstructured(PyPI) = 0.10.5 No fix listed
pypi unstructured(PyPI) = 0.10.6 No fix listed
pypi unstructured(PyPI) = 0.10.7 No fix listed
pypi unstructured(PyPI) = 0.10.8 No fix listed
pypi unstructured(PyPI) = 0.10.9 No fix listed
pypi unstructured(PyPI) = 0.11.0 No fix listed
pypi unstructured(PyPI) = 0.11.1 No fix listed
pypi unstructured(PyPI) = 0.11.2 No fix listed
pypi unstructured(PyPI) = 0.11.4 No fix listed
pypi unstructured(PyPI) = 0.11.5 No fix listed
pypi unstructured(PyPI) = 0.11.6 No fix listed
pypi unstructured(PyPI) = 0.11.7 No fix listed
pypi unstructured(PyPI) = 0.11.8 No fix listed
pypi unstructured(PyPI) = 0.12.0 No fix listed
pypi unstructured(PyPI) = 0.12.2 No fix listed
pypi unstructured(PyPI) = 0.12.3 No fix listed
pypi unstructured(PyPI) = 0.12.4 No fix listed
pypi unstructured(PyPI) = 0.12.5 No fix listed
pypi unstructured(PyPI) = 0.12.6 No fix listed
pypi unstructured(PyPI) = 0.13.0 No fix listed
pypi unstructured(PyPI) = 0.13.1 No fix listed
pypi unstructured(PyPI) = 0.13.2 No fix listed
pypi unstructured(PyPI) = 0.13.3 No fix listed
pypi unstructured(PyPI) = 0.13.4 No fix listed
pypi unstructured(PyPI) = 0.13.5 No fix listed
pypi unstructured(PyPI) = 0.13.6 No fix listed
pypi unstructured(PyPI) = 0.13.7 No fix listed
pypi unstructured(PyPI) = 0.14.0 No fix listed
pypi unstructured(PyPI) = 0.14.10 No fix listed
pypi unstructured(PyPI) = 0.14.2 No fix listed
pypi unstructured(PyPI) = 0.14.2.dev1 No fix listed
pypi unstructured(PyPI) = 0.14.3 No fix listed
pypi unstructured(PyPI) = 0.14.4 No fix listed
pypi unstructured(PyPI) = 0.14.5 No fix listed
pypi unstructured(PyPI) = 0.14.6 No fix listed
pypi unstructured(PyPI) = 0.14.7 No fix listed
pypi unstructured(PyPI) = 0.14.8 No fix listed
pypi unstructured(PyPI) = 0.14.9 No fix listed
pypi unstructured(PyPI) = 0.15.0 No fix listed
pypi unstructured(PyPI) = 0.15.1 No fix listed
pypi unstructured(PyPI) = 0.15.10 No fix listed
pypi unstructured(PyPI) = 0.15.12 No fix listed
pypi unstructured(PyPI) = 0.15.13 No fix listed
pypi unstructured(PyPI) = 0.15.14 No fix listed
pypi unstructured(PyPI) = 0.15.3 No fix listed
pypi unstructured(PyPI) = 0.15.5 No fix listed
pypi unstructured(PyPI) = 0.15.6 No fix listed
pypi unstructured(PyPI) = 0.15.7 No fix listed
pypi unstructured(PyPI) = 0.15.8 No fix listed
pypi unstructured(PyPI) = 0.15.9 No fix listed
pypi unstructured(PyPI) = 0.16.0 No fix listed
pypi unstructured(PyPI) = 0.16.1 No fix listed
pypi unstructured(PyPI) = 0.16.10 No fix listed
pypi unstructured(PyPI) = 0.16.11 No fix listed
pypi unstructured(PyPI) = 0.16.12 No fix listed
pypi unstructured(PyPI) = 0.16.13 No fix listed
pypi unstructured(PyPI) = 0.16.14 No fix listed
pypi unstructured(PyPI) = 0.16.15 No fix listed
pypi unstructured(PyPI) = 0.16.16 No fix listed
pypi unstructured(PyPI) = 0.16.17 No fix listed
pypi unstructured(PyPI) = 0.16.19 No fix listed
pypi unstructured(PyPI) = 0.16.2 No fix listed
pypi unstructured(PyPI) = 0.16.20 No fix listed
pypi unstructured(PyPI) = 0.16.21 No fix listed
pypi unstructured(PyPI) = 0.16.22 No fix listed
pypi unstructured(PyPI) = 0.16.23 No fix listed
pypi unstructured(PyPI) = 0.16.24 No fix listed
pypi unstructured(PyPI) = 0.16.25 No fix listed
pypi unstructured(PyPI) = 0.16.3 No fix listed
pypi unstructured(PyPI) = 0.16.4 No fix listed
pypi unstructured(PyPI) = 0.16.5 No fix listed
pypi unstructured(PyPI) = 0.16.6 No fix listed
pypi unstructured(PyPI) = 0.16.7 No fix listed
pypi unstructured(PyPI) = 0.16.8 No fix listed
pypi unstructured(PyPI) = 0.16.9 No fix listed
pypi unstructured(PyPI) = 0.17.0 No fix listed
pypi unstructured(PyPI) = 0.17.2 No fix listed
pypi unstructured(PyPI) = 0.18.1 No fix listed
pypi unstructured(PyPI) = 0.18.11 No fix listed
pypi unstructured(PyPI) = 0.18.13 No fix listed
pypi unstructured(PyPI) = 0.18.14 No fix listed
pypi unstructured(PyPI) = 0.18.15 No fix listed
pypi unstructured(PyPI) = 0.18.18 No fix listed
pypi unstructured(PyPI) = 0.18.2 No fix listed
pypi unstructured(PyPI) = 0.18.20 No fix listed
pypi unstructured(PyPI) = 0.18.21 No fix listed
pypi unstructured(PyPI) = 0.18.24 No fix listed
pypi unstructured(PyPI) = 0.18.26 No fix listed
pypi unstructured(PyPI) = 0.18.27 No fix listed
pypi unstructured(PyPI) = 0.18.3 No fix listed
pypi unstructured(PyPI) = 0.18.31 No fix listed
pypi unstructured(PyPI) = 0.18.32 No fix listed
pypi unstructured(PyPI) = 0.18.5 No fix listed
pypi unstructured(PyPI) = 0.18.6 No fix listed
pypi unstructured(PyPI) = 0.18.7 No fix listed
pypi unstructured(PyPI) = 0.18.9 No fix listed
pypi unstructured(PyPI) = 0.2.0 No fix listed
pypi unstructured(PyPI) = 0.2.1 No fix listed
pypi unstructured(PyPI) = 0.2.2 No fix listed
pypi unstructured(PyPI) = 0.2.3 No fix listed
pypi unstructured(PyPI) = 0.2.4 No fix listed
pypi unstructured(PyPI) = 0.2.5 No fix listed
pypi unstructured(PyPI) = 0.2.6.dev1 No fix listed
pypi unstructured(PyPI) = 0.20.2 No fix listed
pypi unstructured(PyPI) = 0.20.6 No fix listed
pypi unstructured(PyPI) = 0.20.8 No fix listed
pypi unstructured(PyPI) = 0.21.0 No fix listed
pypi unstructured(PyPI) = 0.21.1 No fix listed
pypi unstructured(PyPI) = 0.21.2 No fix listed
pypi unstructured(PyPI) = 0.21.5 No fix listed
pypi unstructured(PyPI) = 0.22.10 No fix listed
pypi unstructured(PyPI) = 0.22.12 No fix listed
pypi unstructured(PyPI) = 0.22.16 No fix listed
pypi unstructured(PyPI) = 0.22.18 No fix listed
pypi unstructured(PyPI) = 0.22.20 No fix listed
pypi unstructured(PyPI) = 0.22.21 No fix listed
pypi unstructured(PyPI) = 0.22.22 No fix listed
pypi unstructured(PyPI) = 0.22.23 No fix listed
pypi unstructured(PyPI) = 0.22.26 No fix listed
pypi unstructured(PyPI) = 0.22.27 No fix listed
pypi unstructured(PyPI) = 0.22.28 No fix listed
pypi unstructured(PyPI) = 0.22.29 No fix listed
pypi unstructured(PyPI) = 0.22.30 No fix listed
pypi unstructured(PyPI) = 0.22.31 No fix listed
pypi unstructured(PyPI) = 0.22.32 No fix listed
pypi unstructured(PyPI) = 0.22.6 No fix listed
pypi unstructured(PyPI) = 0.23.0 No fix listed
pypi unstructured(PyPI) = 0.23.1 No fix listed
pypi unstructured(PyPI) = 0.24.0 No fix listed
pypi unstructured(PyPI) = 0.3.0 No fix listed
pypi unstructured(PyPI) = 0.3.1 No fix listed
pypi unstructured(PyPI) = 0.3.2 No fix listed
pypi unstructured(PyPI) = 0.3.3 No fix listed
pypi unstructured(PyPI) = 0.3.4 No fix listed
pypi unstructured(PyPI) = 0.3.5 No fix listed
pypi unstructured(PyPI) = 0.4.0 No fix listed
pypi unstructured(PyPI) = 0.4.1 No fix listed
pypi unstructured(PyPI) = 0.4.10 No fix listed
pypi unstructured(PyPI) = 0.4.11 No fix listed
pypi unstructured(PyPI) = 0.4.12 No fix listed
pypi unstructured(PyPI) = 0.4.13 No fix listed
pypi unstructured(PyPI) = 0.4.14 No fix listed
pypi unstructured(PyPI) = 0.4.15 No fix listed
pypi unstructured(PyPI) = 0.4.16 No fix listed
pypi unstructured(PyPI) = 0.4.2 No fix listed
pypi unstructured(PyPI) = 0.4.3 No fix listed
pypi unstructured(PyPI) = 0.4.4 No fix listed
pypi unstructured(PyPI) = 0.4.6 No fix listed
pypi unstructured(PyPI) = 0.4.7 No fix listed
pypi unstructured(PyPI) = 0.4.8 No fix listed
pypi unstructured(PyPI) = 0.4.9 No fix listed
pypi unstructured(PyPI) = 0.5.0 No fix listed
pypi unstructured(PyPI) = 0.5.1 No fix listed
pypi unstructured(PyPI) = 0.5.10 No fix listed
pypi unstructured(PyPI) = 0.5.11 No fix listed
pypi unstructured(PyPI) = 0.5.12 No fix listed
pypi unstructured(PyPI) = 0.5.13 No fix listed
pypi unstructured(PyPI) = 0.5.2 No fix listed
pypi unstructured(PyPI) = 0.5.3 No fix listed
pypi unstructured(PyPI) = 0.5.4 No fix listed
pypi unstructured(PyPI) = 0.5.6 No fix listed
pypi unstructured(PyPI) = 0.5.7 No fix listed
pypi unstructured(PyPI) = 0.5.8 No fix listed
pypi unstructured(PyPI) = 0.5.9 No fix listed
pypi unstructured(PyPI) = 0.6.0 No fix listed
pypi unstructured(PyPI) = 0.6.1 No fix listed
pypi unstructured(PyPI) = 0.6.10 No fix listed
pypi unstructured(PyPI) = 0.6.11 No fix listed
pypi unstructured(PyPI) = 0.6.2 No fix listed
pypi unstructured(PyPI) = 0.6.3 No fix listed
pypi unstructured(PyPI) = 0.6.4 No fix listed
pypi unstructured(PyPI) = 0.6.5 No fix listed

References