CVE-2025-62505
Description
LobeChat is an open source chat application platform. The web-crawler package in LobeChat version 1.136.1 allows server-side request forgery (SSRF) in the tools.search.crawlPages tRPC endpoint. A client can supply an arbitrary urls array together with impls containing the value naive. The service passes the user URLs to Crawler.crawl and the naive implementation performs a server-side fetch of each supplied URL without validating or restricting internal network addresses (such as localhost, 127.0.0.1, private IP ranges, or cloud instance metadata endpoints). This allows an attacker with a valid user token (or in development mode using a bypass header) to make the server disclose responses from internal HTTP services, potentially exposing internal API data or cloud metadata credentials. Version 1.136.2 fixes the issue. Update to version 1.136.2. No known workarounds exist.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
@lobehub/chatnpm | < 1.136.2 | 1.136.2 |
Affected products
1Patches
18d59583dca16Merge commit from fork
2 files changed · +3 −1
packages/web-crawler/package.json+1 −0 modified@@ -12,6 +12,7 @@ "@mozilla/readability": "^0.6.0", "happy-dom": "^18.0.0", "node-html-markdown": "^1.3.0", + "ssrf-safe-fetch": "workspace:*", "query-string": "^9.1.1", "url-join": "^5" }
packages/web-crawler/src/crawImpl/naive.ts+2 −1 modified@@ -1,4 +1,5 @@ import { CrawlImpl, CrawlSuccessResult } from '../type'; +import { ssrfSafeFetch } from 'ssrf-safe-fetch'; import { NetworkConnectionError, PageNotFoundError, TimeoutError } from '../utils/errorType'; import { htmlToMarkdown } from '../utils/htmlToMarkdown'; import { DEFAULT_TIMEOUT, withTimeout } from '../utils/withTimeout'; @@ -37,7 +38,7 @@ export const naive: CrawlImpl = async (url, { filterOptions }) => { try { res = await withTimeout( - fetch(url, { + ssrfSafeFetch(url, { headers: mixinHeaders, signal: new AbortController().signal, }),
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
5- github.com/advisories/GHSA-fgx4-p8xf-qhp9ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-62505ghsaADVISORY
- github.com/lobehub/lobe-chat/blob/d942a635b36a231156c60d824afa573af8032572/packages/web-crawler/src/crawImpl/naive.tsghsaWEB
- github.com/lobehub/lobe-chat/commit/8d59583dca16f218b99213d641733d8ba77f182cnvdWEB
- github.com/lobehub/lobe-chat/security/advisories/GHSA-fgx4-p8xf-qhp9nvdWEB
News mentions
0No linked articles in our index yet.