CVE-2026-41481: CWE-918: Server-Side Request Forgery (SSRF) in langchain-ai langchain-text-splitters
CVE-2026-41481 is a Server-Side Request Forgery (SSRF) vulnerability in langchain-ai's langchain-text-splitters prior to version 1. 1. 2. The issue arises because the HTMLHeaderTextSplitter. split_text_from_url() method validates the initial URL but does not revalidate redirect targets, allowing an attacker-controlled URL to redirect to internal or cloud metadata endpoints. This can lead to sensitive data leakage if the application returns the fetched Document contents to the requester. The vulnerability is fixed in version 1. 1. 2.
AI Analysis
Technical Summary
The vulnerability exists in langchain-text-splitters before version 1.1.2, where the method split_text_from_url() validates the initial URL using validate_safe_url() but performs the HTTP fetch with redirects enabled and without revalidating redirect targets. This allows an attacker to supply a URL that redirects to internal, localhost, or cloud metadata endpoints, bypassing SSRF protections. The fetched response is parsed into Document objects and returned to the application. If the application exposes these Document contents back to the requester, sensitive internal data could be leaked. Applications that do not expose Document contents to the requester are not directly impacted by data exfiltration through this vulnerability. The issue is addressed in langchain-text-splitters version 1.1.2.
Potential Impact
An attacker can exploit this SSRF vulnerability to cause the application to make HTTP requests to internal or cloud metadata endpoints that are normally inaccessible. If the application returns the fetched Document contents to the user who supplied the URL, this can lead to sensitive data disclosure. There is no impact on integrity or availability reported. The severity is rated medium with a CVSS score of 6.5.
Mitigation Recommendations
Upgrade langchain-text-splitters to version 1.1.2 or later, where this SSRF vulnerability is fixed by properly validating redirect targets. Until upgraded, applications should avoid returning raw Document contents fetched from user-supplied URLs to the requester. Patch status is confirmed fixed in version 1.1.2.
CVE-2026-41481: CWE-918: Server-Side Request Forgery (SSRF) in langchain-ai langchain-text-splitters
Description
CVE-2026-41481 is a Server-Side Request Forgery (SSRF) vulnerability in langchain-ai's langchain-text-splitters prior to version 1. 1. 2. The issue arises because the HTMLHeaderTextSplitter. split_text_from_url() method validates the initial URL but does not revalidate redirect targets, allowing an attacker-controlled URL to redirect to internal or cloud metadata endpoints. This can lead to sensitive data leakage if the application returns the fetched Document contents to the requester. The vulnerability is fixed in version 1. 1. 2.
CVSS v3.1
Score 6.5medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in langchain-text-splitters before version 1.1.2, where the method split_text_from_url() validates the initial URL using validate_safe_url() but performs the HTTP fetch with redirects enabled and without revalidating redirect targets. This allows an attacker to supply a URL that redirects to internal, localhost, or cloud metadata endpoints, bypassing SSRF protections. The fetched response is parsed into Document objects and returned to the application. If the application exposes these Document contents back to the requester, sensitive internal data could be leaked. Applications that do not expose Document contents to the requester are not directly impacted by data exfiltration through this vulnerability. The issue is addressed in langchain-text-splitters version 1.1.2.
Potential Impact
An attacker can exploit this SSRF vulnerability to cause the application to make HTTP requests to internal or cloud metadata endpoints that are normally inaccessible. If the application returns the fetched Document contents to the user who supplied the URL, this can lead to sensitive data disclosure. There is no impact on integrity or availability reported. The severity is rated medium with a CVSS score of 6.5.
Mitigation Recommendations
Upgrade langchain-text-splitters to version 1.1.2 or later, where this SSRF vulnerability is fixed by properly validating redirect targets. Until upgraded, applications should avoid returning raw Document contents fetched from user-supplied URLs to the requester. Patch status is confirmed fixed in version 1.1.2.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-20T16:14:19.006Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69ebdedf87115cfb68748361
Added to database: 4/24/2026, 9:21:35 PM
Last enriched: 5/2/2026, 7:35:12 AM
Last updated: 6/9/2026, 1:39:18 AM
Views: 197
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.