CVE-2026-26019 @langchain/community affected by SSRF Bypass in RecursiveUrlLoader via insufficient URL origin validation
Attackers can bypass URL origin checks in RecursiveUrlLoader to access internal services or attacker-controlled domains via SSRF.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-26019?
CVE-2026-26019 is a medium-severity server-side request forgery vulnerability in langchain-ai langchainjs, published on 11 Feb 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
LangChain is a framework for building LLM-powered applications. Prior to 1.1.14, the RecursiveUrlLoader class in @langchain/community is a web crawler that recursively follows links from a starting URL. Its preventOutside option (enabled by default) is intended to restrict crawling to the same site as the base URL. The implementation used String.startsWith() to compare URLs, which does not perform semantic URL validation. An attacker who controls content on a crawled page could include links to domains that share a string prefix with the target, causing the crawler to follow links to attacker-controlled or internal infrastructure. Additionally, the crawler performed no validation against private or reserved IP addresses. A crawled page could include links targeting cloud metadata services, localhost, or RFC 1918 addresses, and the crawler would fetch them without restriction. This vulnerability is fixed in 1.1.14.
Weakness: CWE-918
Which versions are affected by CVE-2026-26019?
2 open source packages ship an affected version, including @langchain/community. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
@langchain/community npm | All versions | 1.1.14 |
@langchain/community npm | All versions | 1.1.14 |
Products include Langchain Langchain Community.
How do I fix CVE-2026-26019?
Upgrade @langchain/community to 1.1.14 or later.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2026-26019 being exploited?
There is no known exploitation of CVE-2026-26019 in the wild and no public exploit code.
Other vulnerabilities in langchain-ai langchainjs
Sources
Also known as CLEANSTART-2026-NM65993, ECHO-fa8c-98dc-ec74, GHSA-gf3v-fwqg-4vh7, MINI-5h3h-3rc2-hc33, MINI-7fx2-8pfx-48jm, MINI-cg5c-5g7r-jwhg and 6 more.