Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @langchain/community
  4. ›
  5. CVE-2026-26019

CVE-2026-26019: @langchain/community affected by SSRF Bypass in RecursiveUrlLoader via insufficient URL origin validation

February 11, 2026

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. An attacker who controls content on a crawled page could include links to domains that share a string prefix with the target (e.g., https://example.com.attacker.com passes a startsWith check against https://example.com), causing the crawler to follow links to attacker-controlled or internal infrastructure.

Additionally, the crawler performed no validation against private or reserved IP addresses. A crawled page could include links targeting cloud metadata services (169.254.169.254), localhost, or RFC 1918 addresses, and the crawler would fetch them without restriction.

References

  • github.com/advisories/GHSA-gf3v-fwqg-4vh7
  • github.com/langchain-ai/langchainjs
  • github.com/langchain-ai/langchainjs/commit/d5e3db0d01ab321ec70a875805b2f74aefdadf9d
  • github.com/langchain-ai/langchainjs/pull/9990
  • github.com/langchain-ai/langchainjs/releases/tag/%40langchain%2Fcommunity%401.1.14
  • github.com/langchain-ai/langchainjs/security/advisories/GHSA-gf3v-fwqg-4vh7
  • nvd.nist.gov/vuln/detail/CVE-2026-26019

Code Behaviors & Features

Detect and mitigate CVE-2026-26019 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.1.14

Fixed versions

  • 1.1.14

Solution

Upgrade to version 1.1.14 or above.

Impact 4.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

npm/@langchain/community/CVE-2026-26019.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 12 Feb 2026 12:18:56 +0000.