Skip to content
MediumVulnerability

CVE-2026-27795: LangChain RecursiveUrlLoader SSRF bypass through redirects

Identifier
CVE-2026-27795
Published
Record updated
View JSON
Affected
  • @langchain/community <= 1.1.17
Fixed in
1.1.18
  • released February 23, 2026, 2 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

Prior to version 1.1.8, the `RecursiveUrlLoader` in `@langchain/community` contains a redirect-based SSRF bypass. The loader validates the initial URL but lets the underlying fetch follow redirects automatically, so a request can move from a safe public URL to an internal or metadata endpoint without revalidation. The flaw bypasses the SSRF protections introduced in 1.1.14 (CVE-2026-26019).

Mitigation

Upgrade `@langchain/community` to 1.1.18, which disables automatic redirects (`redirect: "manual"`), resolves and validates each 3xx `Location` target with `validateSafeUrl()` before the next request, and enforces a maximum redirect limit.