Vulnerabilities/

@langchain/community affected by SSRF Bypass in RecursiveUrlLoader via insufficient URL origin validation

Severity:
Medium

Description

The RecursiveUrlLoader class in @langchain/community is a web crawler that recursively follows links from a starting URL. Its preventOutside option (enabled by default) is intended to restrict crawling to the same site as the base URL.

The implementation used String.startsWith() to compare URLs, which does not perform semantic URL validation.

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 12, 2026