Vulnerabilities/

LangChain Community: redirect chaining can lead to SSRF bypass via RecursiveUrlLoader

Severity:
Medium

Description

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.

Recommendation

Update the @langchain/community package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
@langchain/community
Anything's wrong? Let us know Last updated on February 25, 2026