@langchain/community affected by SSRF Bypass in RecursiveUrlLoader via insufficient URL origin validation
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
@langchain/communitynpm | < 1.1.14 | 1.1.14 |
Affected products
7- osv-coords6 versionspkg:apk/chainguard/kibana-8.19pkg:apk/chainguard/kibana-8.19-bitnamipkg:apk/chainguard/kibana-8.19-iamguardedpkg:apk/chainguard/kibana-9.0-bitnamipkg:apk/chainguard/kibana-9.0-iamguardedpkg:npm/%40langchain/community
< 8.19.15-r0+ 5 more
- (no CPE)range: < 8.19.15-r0
- (no CPE)range: < 8.19.15-r0
- (no CPE)range: < 8.19.15-r0
- (no CPE)range: < 9.0.8-r32
- (no CPE)range: < 9.0.8-r32
- (no CPE)range: < 1.1.14
- Range: < 1.1.14
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-gf3v-fwqg-4vh7ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-26019ghsaADVISORY
- github.com/langchain-ai/langchainjs/commit/d5e3db0d01ab321ec70a875805b2f74aefdadf9dghsax_refsource_MISCWEB
- github.com/langchain-ai/langchainjs/pull/9990ghsax_refsource_MISCWEB
- github.com/langchain-ai/langchainjs/releases/tag/%40langchain%2Fcommunity%401.1.14ghsax_refsource_MISCWEB
- github.com/langchain-ai/langchainjs/security/advisories/GHSA-gf3v-fwqg-4vh7ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.