GHSA-v5mq-3xhg-98m9: unstructured: Stored XSS via unescaped HTML generation
- Identifiers
- CVE-2026-104250GHSA-v5mq-3xhg-98m9
- Published
- Record updated
- Affected
- unstructured <= 0.24.0
- Fixed in
- 0.24.1
- released July 11, 2026, 96 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.2%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .
Summary
The unstructured library (version 0.23.3 tested) emits untrusted document content into HTML without escaping. Through partition_html(html_parser_version="v2") and elements_to_html(), event-handler attributes such as onerror and onmouseover and javascript: link URLs survive into the output, so the script runs when a browser renders it, including automatically via <img onerror> with no user interaction. Anyone rendering text_as_html from untrusted input is exposed, which the advisory describes as stored XSS in ingestion pipelines.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- unstructuredPyPILLM dependency since 2023-04-12, 8 tracked dependents
Related items
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database
- MediumNSA urges immediate post-quantum shift after AI labs report cryptography breakthroughsSimilar attack, CSO Online
- LowPerplexity caught an AI attacker casing its cloudSimilar attack, CSO Online