CVE-2026-71428: Server-Side Request Forgery in unstructured Package
Summary
CVE-2026-71428: unstructured: Server-Side Request Forgery in the URL-based partitioning. Affects unstructured versions >= 0.4.7, < 0.24.0. Fixed in 0.24.0. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The unstructured package is a widely used library in Python for processing and ingesting data from various URL sources. It serves as a crucial component for frameworks like LangChain's UnstructuredURLLoader and LlamaIndex's UnstructuredReader. The package allows users to partition and analyze content from URLs, making it essential for applications that rely on web data. However, a critical vulnerability has been identified that exposes users to potential security risks.
Vulnerability Detail
The vulnerability arises from a Server-Side Request Forgery (SSRF) in the unstructured package, specifically in the methods partition(), partition_html(), and partition_md(). The issue is rooted in the lack of host validation when fetching URLs via requests.get(). This oversight allows attackers to exploit the package to access internal services, loopback admin APIs, and cloud metadata endpoints. The vulnerability has been present since version 0.4.7 and affects all subsequent releases up to 0.22.26, posing a significant risk of unauthorized data access and potential internal network reconnaissance.
How To Fix
Latest published version: 0.27.33 as of 22 Oct 2026
pip install --upgrade "unstructured==0.27.33"
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
0.24.0
This is the first release that contains the fix.
pip install --upgrade "unstructured==0.24.0"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, users can implement host validation in their application code before making requests to URLs. However, this is not a complete solution and upgrading the package is strongly recommended.
Conclusion
The CVE-2026-71428 vulnerability in the unstructured package poses a significant risk due to its SSRF nature, allowing unauthorized access to sensitive internal resources. Users are strongly advised to upgrade to the patched version 0.24.0 to mitigate this risk effectively.
See every vulnerability recorded for unstructured →
FAQ
SSRF is a security vulnerability that allows an attacker to send crafted requests from the server to internal or external resources, potentially exposing sensitive data.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
The vulnerability can lead to unauthorized access to internal HTTP services, cloud instance metadata, and other sensitive information, posing a significant security risk.
Yes, the vulnerability has been patched in version 0.24.0 of the unstructured package. Users should upgrade to this version or later.
If immediate upgrading is not possible, implement host validation in your application code as a temporary workaround until you can upgrade.
References
Related vulnerabilities
Recent vulnerabilities recorded for unstructured.