home / blog
2026-11-12 · high
CVE-2023-46229: SSRF in LangChain document_loaders
SSRF in LangChain document_loaders with CVSS 8.8: crawling can traverse from external URL to internal server.

CVE-2023-46229 is an SSRF (Server-Side Request Forgery) vulnerability identified in LangChain before version 0.0.317. The flaw resides in the document_loaders/recursive_url_loader.py module, used for automatic document parsing from URLs. An attacker can orchestrate crawling to traverse from an external URL to internal services (databases, private APIs, cloud metadata services), bypassing perimeter firewalls. The risk is significant for applications integrating LangChain in document processing pipelines without network isolation.
CVSS score is 8.8 (high severity). The vulnerability was publicly disclosed on October 19, 2023, with patches available. In recent weeks (November 2026), GitHub repositories have surfaced updates documenting proof-of-concept for authorized testing environments and remediation guidance. The absence of documented active exploitation does not diminish risk: LangChain is in widespread use in production AI/LLM environments, and SSRF remains a category of attack not yet fully contained in many infrastructures.
Immediately verify the version of LangChain in production. If version < 0.0.317, update without delay. Review access logs to document loading modules for anomalous patterns: traversal to internal addresses, delayed timeouts, anomalous requests. Implement network segmentation isolating containers/hosts running LangChain from critical internal resources. Configure WAF and reverse proxy to block requests to private address ranges. Update IAM policies to limit access to internal services to the minimum necessary.
At a glance
- What
- LangChain (before v0.0.317) contains an SSRF vulnerability in the document_loaders/recursive_url_loader.py module. It allows traversal from external servers to internal servers during URL crawling.
- Severity
- CVSS 8.8 (high). Allows an attacker to reach internal resources unreachable from the web, such as internal databases, private storage, cloud metadata services.
- Affected versions
- LangChain before version 0.0.317.
- Fix
- Update LangChain to version 0.0.317 or later. The patch was released on October 19, 2023.
- Status
- The vulnerability was publicly disclosed on October 19, 2023. GitHub repositories document proof-of-concept (PoC) in controlled environments for authorized testing.
- Action
- Verify the version of LangChain in use. Update immediately if before v0.0.317. Review access logs to document loaders for signs of past exploitation. Restrict access to internal services through firewalls and IAM policies.
Sources: NVD, CVE-2023-46229