{"id":"CVE-2026-104250","revision":null,"records":[{"revision":"89e522c4c72b4016a83713da2299421e","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-104250","aliases":[],"title":"unstructured: Stored XSS via unescaped HTML generation","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.","state":0,"publishedAt":"2026-10-13T16:29:28.813+00:00","modifiedAt":"2026-10-14T15:32:42.13+00:00","affected":[{"ecosystem":"Vendor product","name":"unstructured","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Unstructured-IO\",\n                    \"product\": \"unstructured\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 0.24.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"severity":"MEDIUM"}],"references":["https://github.com/Unstructured-IO/unstructured/security/advisories/GHSA-v5mq-3xhg-98m9","https://github.com/Unstructured-IO/unstructured/pull/4394","https://github.com/Unstructured-IO/unstructured/commit/cda16b3f2170019be9c6ea5635946fb3eaa2d66f","https://github.com/Unstructured-IO/unstructured/releases/tag/0.24.1"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-104250","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-104250","identifiers":["CVE-2026-104250"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-10T03:04:22.1901019+00:00","complete":true,"records":1773,"lastAttemptAt":"2026-11-10T03:04:22.1901019+00:00","lastSuccessAt":"2026-11-10T03:04:22.4562446+00:00","error":null,"lastVerifiedAt":"2026-11-10T03:04:22.4562448+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-8859cf40d4337e24bd2f258cc7778fbad01bb24c79d057aaf34cf1dfc6f8917d-289d4ed8f55aed8ed61e8f7dcecff8e55c86b4ed8b9718fa745f21e7f57c02b2","complete":true,"records":421867,"lastAttemptAt":"2026-11-10T03:02:15.6491812+00:00","lastSuccessAt":"2026-11-10T03:02:15.6333094+00:00","error":null,"lastVerifiedAt":"2026-11-10T03:02:15.6491812+00:00","snapshotPublishedAt":"2026-11-10T02:29:53+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-a6dc967b5ceb4c488191e8f172ded5d6","complete":true,"records":13689,"lastAttemptAt":"2026-11-10T03:04:49.9204715+00:00","lastSuccessAt":"2026-11-10T03:04:49.903+00:00","error":null,"lastVerifiedAt":"2026-11-10T03:04:49.903+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13742,"expectedIdentifiers":13742,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-10T03:04:22.1901019+00:00","complete":true,"records":1096,"lastAttemptAt":"2026-11-10T03:04:22.1901019+00:00","lastSuccessAt":"2026-11-10T03:04:22.4569928+00:00","error":null,"lastVerifiedAt":"2026-11-10T03:04:22.4569929+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-fbf77538c5e64cc7afc868fbb9fb5c24","complete":true,"records":13695,"lastAttemptAt":"2026-11-10T03:04:25.9116946+00:00","lastSuccessAt":"2026-11-10T03:04:25.908+00:00","error":null,"lastVerifiedAt":"2026-11-10T03:04:25.908+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13742,"expectedIdentifiers":13742,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-cdffb4589856378aa42e8d1bd4a6c74e27a180d8160bf764c44715ef760f0a62","complete":true,"records":9932,"lastAttemptAt":"2026-11-10T03:04:22.1448418+00:00","lastSuccessAt":"2026-11-10T00:04:19.8260565+00:00","error":null,"lastVerifiedAt":"2026-11-10T03:04:22.1448418+00:00","snapshotPublishedAt":"2026-11-09T23:48:01+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-26503967ae4379db8f374089589d6e03fb15bd31f820c9e992aaf93840c2236c","complete":true,"records":1971,"lastAttemptAt":"2026-11-10T03:02:15.7065854+00:00","lastSuccessAt":"2026-11-09T21:02:20.472473+00:00","error":null,"lastVerifiedAt":"2026-11-10T03:02:15.7065854+00:00","snapshotPublishedAt":"2026-11-09T20:18:18+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-761ecc9061239b0da572dc9254c6f384c1d19339eb08408c436647a2f26129e9","complete":true,"records":3064,"lastAttemptAt":"2026-11-10T03:04:22.1570804+00:00","lastSuccessAt":"2026-11-09T17:05:03.4044794+00:00","error":null,"lastVerifiedAt":"2026-11-10T03:04:22.1570804+00:00","snapshotPublishedAt":"2026-11-09T16:33:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-46a53ca789ff58f13bbd6bc37e88737e9f32db19151b87bd49ca256b0948c4d8","complete":true,"records":231581,"lastAttemptAt":"2026-11-10T03:04:22.0184338+00:00","lastSuccessAt":"2026-11-10T03:04:20.6050085+00:00","error":null,"lastVerifiedAt":"2026-11-10T03:04:22.0184338+00:00","snapshotPublishedAt":"2026-11-10T02:33:11+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}