{"id":"CVE-2026-27795","published":"2026-02-25T17:30:01Z","modified":"2026-02-25T18:42:52Z","title":"LangChain Community: redirect chaining can lead to SSRF bypass via RecursiveUrlLoader","vendor":"langchain-ai","product":"langchainjs","tier":"tail","description":{"text":"LangChain is a framework for building LLM-powered applications. Prior to version 1.1.8, a redirect-based Server-Side Request Forgery (SSRF) bypass exists in `RecursiveUrlLoader` in `@langchain/community`. The loader validates the initial URL but allows the underlying fetch to follow redirects automatically, which permits a transition from a safe public URL to an internal or metadata endpoint without revalidation. This is a bypass of the SSRF protections introduced in 1.1.14 (CVE-2026-26019). Users should upgrade to `@langchain/community` 1.1.18, which validates every redirect hop by disabling automatic redirects and re-validating `Location` targets before following them. In this version, automatic redirects are disabled (`redirect: \"manual\"`), each 3xx `Location` is resolved and validated with `validateSafeUrl()` before the next request, and a maximum redirect limit prevents infinite loops.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00253,"percentile":0.16945,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-mphv-75cg-56wg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-gf3v-fwqg-4vh7","tags":["x_refsource_MISC"]},{"url":"https://github.com/langchain-ai/langchainjs/pull/9990","tags":["x_refsource_MISC"]},{"url":"https://github.com/langchain-ai/langchainjs/commit/2812d2b2b9fd9343c4850e2ab906b8cf440975ee","tags":["x_refsource_MISC"]},{"url":"https://github.com/langchain-ai/langchainjs/commit/d5e3db0d01ab321ec70a875805b2f74aefdadf9d","tags":["x_refsource_MISC"]},{"url":"https://github.com/langchain-ai/langchainjs/releases/tag/%40langchain%2Fcommunity%401.1.14","tags":["x_refsource_MISC"]},{"url":"https://github.com/langchain-ai/langchainjs/releases/tag/%40langchain%2Fcommunity%401.1.18","tags":["x_refsource_MISC"]}],"priority":{"score":6.3,"factors":[{"name":"EPSS percentile","points":3.39},{"name":"CVSS severity","points":2.87}]},"vendorSlug":"langchain-ai","affectedVersions":[{"vendor":"langchain-ai","product":"langchainjs","versions":["< 1.1.18"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-25T18:42:34.609541Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@langchain/community","vulnerableRanges":["<1.1.18"],"patched":["1.1.18"],"from":["GHSA-mphv-75cg-56wg"],"provenance":"source"}],"summary":{"text":"A redirect-based SSRF bypass in the RecursiveUrlLoader component of @langchain/community, part of the langchainjs product, lets the loader validate only the initial URL while the underlying fetch follows redirects automatically without revalidation. An attacker who can get the loader to fetch a URL they control, which redirects onward, can reach internal or metadata endpoints, and exploitation requires low privileges and user interaction, with affected versions prior to 1.1.8 and a fix in @langchain/community 1.1.18.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:58Z"},"euvd":{"id":"EUVD-2026-8697","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-langchain-ai-langchainjs-cve-2026-26019","parents":[{"from":"CVE-2026-26019","to":"CVE-2026-27795","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-gf3v-fwqg-4vh7","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-mphv-75cg-56wg","via":"reference","url":"https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-gf3v-fwqg-4vh7"},{"kind":"version-step","provenance":"source","package":"npm:@langchain/community","fromFixed":"1.1.14","toFixed":"1.1.18","daysApart":14}]}],"packageHistory":[{"cve":"CVE-2024-7042","published":"2024-10-29","fixed":"0.3.3","kev":false},{"cve":"CVE-2026-26019","published":"2026-02-11","fixed":"1.1.14","kev":false},{"cve":"CVE-2026-27795","published":"2026-02-25","fixed":"1.1.18","kev":false}],"package":"npm:@langchain/community"}}