CVE-2026-27795: langchain-ai langchainjs Server-Side Request Forgery (SSRF)
Vulnerability summary
CVE-2026-27795 is a high (CVSS 7.4) Server-Side Request Forgery (SSRF) vulnerability in langchain-ai langchainjs. EPSS estimates a 0.39% chance of exploitation in the next 30 days, higher than 31.7% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 0 · Related 2Timeline
- 25-02-2026PublishedVulnerability first disclosed.
- 25-02-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
4 scores · 4 sources · 1 version- CVE.orgCNA4.1MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:NDiffers
- OSV · NpmEcosystem advisory · calculated4.1MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:NDiffers
- OSV · ChainguardEcosystem advisory · calculated4.1MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:NDiffers
EPSS trend
Probability
0.39%
Chance of exploitation in the next 30 days
Percentile
32%
Versus all other CVEs
30-day change
+0.19 pp
From 0.21% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard14 products
- kibana-8.17All versions (No fix recorded)
- kibana-8.17-bitnamiAll versions (No fix recorded)
- kibana-8.17-iamguardedAll versions (No fix recorded)
- kibana-8.18All versions (No fix recorded)
- kibana-8.18-bitnamiAll versions (No fix recorded)
@langchain1 product
- community< 1.1.18
Langchain1 product
- langchain_community< 1.1.18
Langchain-ai1 product
- langchainjs< 1.1.18
4 vendors · 17 products
References
10 links- github.com/langchain-ai/langchainjs/security/advisories/GHSA-mphv-75cg-56wgX Refsource CONFIRMWEBAdvisoryVendor Advisory
- github.com/langchain-ai/langchainjs/security/advisories/GHSA-gf3v-fwqg-4vh7X Refsource MISCWEBAdvisoryNot Applicable
- github.com/langchain-ai/langchainjs/commit/2812d2b2b9fd9343c4850e2ab906b8cf440975eeX Refsource MISCWEBFIXPatch
- github.com/langchain-ai/langchainjs/commit/d5e3db0d01ab321ec70a875805b2f74aefdadf9dX Refsource MISCWEBFIXPatch
- github.com/langchain-ai/langchainjs/releases/tag/%40langchain%2Fcommunity%401.1.14X Refsource MISCWEBRelease Notes
- github.com/langchain-ai/langchainjs/releases/tag/%40langchain%2Fcommunity%401.1.18X Refsource MISCWEBRelease Notes