Unstructured-IO unstructured
unstructured: Server-Side Request Forgery in the URL-based partitioning
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. From 0.4.7 until 0.24.0, the url argument of partition, partition_html, and partition_md is fetched without host validation in unstructured/partition/auto.py, unstructured/partition/html/partition.py, and unstructured/partition/md.py. An attacker who controls that URL can make a server-side ingestion service request loopback addresses, internal HTTP services, or cloud metadata endpoints through direct targets, redirects, or DNS rebinding. The response body is returned as Element text, allowing internal response disclosure, and side-effecting GET endpoints may also be triggered. This issue is fixed in version 0.24.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.4.7, < 0.24.0
Fixed in 0.24.0
Mitigation
Upgrade unstructured to 0.24.0 or later.
References
- Vendor advisory github.com/Unstructured-IO/unstructured/securi…
- Patch github.com/Unstructured-IO/unstructured/pull/4…
- Patch github.com/Unstructured-IO/unstructured/commit…
1 more
- Release notes github.com/Unstructured-IO/unstructured/releas…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.