Repository navigation
fix(deps): update dependency @langchain/community to v1 [security] - #1252
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
requested review from
devesh-juspay,
junaid-shirur,
kalpadhwaryu,
shivamashtikar and
zereraz
as code owners
February 11, 2026 18:34
renovate
Bot
force-pushed
the
renovate/npm-langchain-community-vulnerability
branch
10 times, most recently
from
February 19, 2026 08:22
012817d to
2092b9b
Compare
renovate
Bot
force-pushed
the
renovate/npm-langchain-community-vulnerability
branch
5 times, most recently
from
February 26, 2026 00:54
84c19af to
92fa512
Compare
renovate
Bot
force-pushed
the
renovate/npm-langchain-community-vulnerability
branch
10 times, most recently
from
March 3, 2026 16:46
e5ce8e1 to
70ffb1f
Compare
renovate
Bot
force-pushed
the
renovate/npm-langchain-community-vulnerability
branch
17 times, most recently
from
March 17, 2026 16:10
10f5142 to
f92c486
Compare
renovate
Bot
force-pushed
the
renovate/npm-langchain-community-vulnerability
branch
7 times, most recently
from
March 24, 2026 15:27
c0b78e6 to
46ca811
Compare
renovate
Bot
force-pushed
the
renovate/npm-langchain-community-vulnerability
branch
4 times, most recently
from
March 31, 2026 06:01
9772dac to
37bfd7f
Compare
Contributor
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.3.22→^1.0.0Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
@langchain/community affected by SSRF Bypass in RecursiveUrlLoader via insufficient URL origin validation
CVE-2026-26019 / GHSA-gf3v-fwqg-4vh7
More information
Details
Description
The
RecursiveUrlLoaderclass in@langchain/communityis a web crawler that recursively follows links from a starting URL. ItspreventOutsideoption (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.compasses astartsWithcheck againsthttps://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.Impact
An attacker who can influence the content of a page being crawled (e.g., by placing a link on a public-facing page, forum, or user-generated content) could cause the crawler to:
10.x,172.16.x,192.168.x)This is exploitable in any environment where
RecursiveUrlLoaderruns on infrastructure with access to cloud metadata or internal services — which includes most cloud-hosted deployments.Resolution
Two changes were made:
Origin comparison replaced. The
startsWithcheck was replaced with a strict origin comparison using the URL API (new URL(link).origin === new URL(baseUrl).origin). This correctly validates scheme, hostname, and port as a unit, preventing subdomain-based bypasses.SSRF validation added to all fetch operations. A new URL validation module (
@langchain/core/utils/ssrf) was introduced and applied before every outbound fetch in the crawler. This blocks requests to:169.254.169.254,169.254.170.2,100.100.100.200,metadata.google.internal, and related hostnames10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,127.0.0.0/8,169.254.0.0/16::1,fc00::/7,fe80::/10file:,ftp:,javascript:, etc.)Cloud metadata endpoints are unconditionally blocked and cannot be overridden.
Workarounds
Users who cannot upgrade immediately should avoid using
RecursiveUrlLoaderon untrusted or user-influenced content, or should run the crawler in a network environment without access to cloud metadata or internal services.Severity
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
LangChain Community: redirect chaining can lead to SSRF bypass via RecursiveUrlLoader
CVE-2026-27795 / GHSA-mphv-75cg-56wg
More information
Details
Summary
A redirect-based Server-Side Request Forgery (SSRF) bypass exists in
RecursiveUrlLoaderin@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. This is a bypass of the SSRF protections introduced in 1.1.14 (CVE-2026-26019).Affected Component
@langchain/communityRecursiveUrlLoaderpreventOutside(default:true) is insufficient to prevent this bypass when redirects are followed automatically.Description
RecursiveUrlLoaderis a web crawler that recursively follows links from a starting URL. The existing SSRF mitigation validates the initial URL before fetching, but it does not re-validate when the request follows redirects. Because fetch follows redirects by default, an attacker can supply a public URL that passes validation and then redirects to a private network address, localhost, or cloud metadata endpoint.This constitutes a “check‑then‑act” gap in the request lifecycle: the safety check occurs before the redirect chain is resolved, and the final destination is never validated.
Impact
If an attacker can influence content on a page being crawled (e.g., user‑generated content, untrusted external pages), they can cause the crawler to:
10.x,172.16.x,192.168.x)This is exploitable in any environment where
RecursiveUrlLoaderruns with access to internal networks or metadata services, which includes most cloud-hosted deployments.Attack Scenario
Example redirector:
Root Cause
validateSafeUrl) is only performed on the initial URL.redirect: "follow"default), so the request can change destinations without additional validation.Resolution
Upgrade to
@langchain/community>= 1.1.18, which validates every redirect hop by disabling automatic redirects and re-validatingLocationtargets before following them.redirect: "manual").Locationis resolved and validated withvalidateSafeUrl()before the next request.Reources
Severity
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
langchain-ai/langchainjs-community (@langchain/community)
v1.1.29Compare Source
Patch Changes
bb52506Thanks @hntrl! - The community package is being sunsetted. See #61 for details and guidance. Thank you to everyone who has contributed integrations, fixes, reviews, and maintenance over the years.v1.1.28Patch Changes
#44
f9a922eThanks @dependabot! - chore(deps): bump fast-xml-parser from 5.5.9 to 5.7.0#30
9cd006cThanks @christian-bromann! - fix(pdf-loader): support both pdf-parse v1 and v2#36
1e2e4bfThanks @hntrl! - Fix Milvus collection loading before delete operations (#9749) and partition name handling in search/delete (#9748)loadCollectionSync()call in thedelete()method to ensure collection is loaded before delete operationspartition_namesparameter tosearch()call insimilaritySearchVectorWithScore()partition_nameparameter to bothdeleteEntities()anddelete()calls#41
5bd4246Thanks @RaschidJFR! - Expose basePath option in VoyageEmbeddings class#43
b835751Thanks @jkennedyvz! - chore(deps): bump transitive dependencies to patch 6 security alertsUpdates pnpm overrides to resolve critical and high severity Dependabot
alerts in transitive dependencies reached via optional peerDependencies
and dev tooling:
protobufjs^7.2.5->^7.5.5(CVE-2026-41242)basic-ftp>=5.2.0->^5.3.0(CVE-2026-39983, GHSA-rp42-5vxx-qpwr, GHSA-6v7q-wjvx-w8wg)vitenew override^7.3.2(CVE-2026-39363, CVE-2026-39364, plus CVE-2026-39365 as a side effect)No workspace package has these as direct dependencies; overrides affect
the monorepo lockfile only and do not change published package contents.
#42
3657e90Thanks @RaschidJFR! - surface Voyage AI API errors in VoyageEmbeddingsConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.