Vulnerability library
Security checkFebruary 12, 2026

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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:

  • Affected version(s): <= 1.1.13
  • Patched version(s): 1.1.14

References

Could your website be exposed too?

SmartScanner can check your website for @langchain/community affected by SSRF Bypass in RecursiveUrlLoader via insufficient URL origin validation and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated February 12, 2026