CVE-2026-27795 json
LangChain Community: redirect chaining can lead to SSRF bypass via RecursiveUrlLoader
published 2026-02-25 8 mo ago modified 2026-09-10 1 mo ago also EUVD-2026-8697 , GHSA-mphv-75cg-56wg
- cvss
- 4.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 16%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm @langchain/community 1.1.18
- langchain langchain.js 1.1.18
- langchain langchain/community 1.1.18
- langchain langchain_community 1.1.18
- github.com/langchain-ai/langchainjs@2812d2b commit
- github.com/langchain-ai/langchainjs@d5e3db0 commit
- github.com/langchain-ai/langchainjs#9990 pull request
- github.com/langchain-ai/langchainjs/releases/tag/%40langchain%2Fcommu… release
- github.com/langchain-ai/langchainjs/releases/tag/%40langchain%2Fcommu… release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-27795 updated cvss 6.5
langchain-core: @langchain/community: Server-Side Request Forgery (SSRF) bypass via redirect manipulation
-
Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-service-api-rhel9 Red Hat Ansible Automation Platform 2 ansible-automation-platform/ee-minimal-rhel8, ansible-automation-platform/ee-minimal-rhel9, ansible-automation-platform-26/mcp-tools-rhel9, ansible-automation-platform-24/de-minimal-rhel8, ansible-automation-platform-24/de-minimal-rhel9, ansible-automation-platform-24/ee-minimal-rhel8, +30 more Red Hat OpenShift AI (RHOAI) rhoai/odh-llama-stack-core-rhel9, rhoai/odh-trustyai-ragas-lls-provider-dsp-rhel9affected: no fix available “Fix deferred”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 8 mo ago
Exploit prediction
0.25% chance of exploitation in the next 30 days, higher than 16% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N |
| GitHub | 3.1 | 4.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N |
| NVD | 3.1 | 7.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @langchain/community | <1.1.18 |
1.1.18 |
Affected products
- langchain-ai langchainjs
Classification
- Weakness
-
- CWE-918 Server-Side Request Forgery
References
-
github.com
/langchain-ai/langchainjs/pull/9990
web, issue-tracking
-
github.com
/langchain-ai/langchainjs/commit/2812d2b2b9fd9343c4850e2ab906b8cf440975ee
web, patch
-
github.com
/langchain-ai/langchainjs/commit/d5e3db0d01ab321ec70a875805b2f74aefdadf9d
web, patch
-
github.com
/langchain-ai/langchainjs/security/advisories/GHSA-mphv-75cg-56wg
web, vendor-advisory
-
github.com
/langchain-ai/langchainjs/security/advisories/GHSA-gf3v-fwqg-4vh7
web, not-applicable
-
github.com
/langchain-ai/langchainjs/releases/tag/%40langchain%2Fcommunity%401.1.14
web, release-notes
-
github.com
/langchain-ai/langchainjs/releases/tag/%40langchain%2Fcommunity%401.1.18
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-27795
advisory
-
github.com
/langchain-ai/langchainjs
package
Sources
- CVE List CVE-2026-27795
- GitHub Advisory GHSA-mphv-75cg-56wg
- NVD CVE-2026-27795
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.