# CVE-2024-47066: LobeHub Lobe Chat SSRF bypass in proxy endpoint via redirects

Source: https://junglewise.ai/threats/cve-2024-47066-lobehub-lobe-chat-ssrf-bypass-in-proxy-endpoint-via-redirects  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-09-23. Updated: 2026-05-14  
License: CC BY 4.0 with a link back

CVE-2024-47066 · Severity: low · CVSS 3.1 · Published 2024-09-23

Lobe Chat, an open-source AI chat framework, contains a security flaw in its proxy service. An attacker can trick the server into making requests to internal systems that are normally protected from the public internet. This could allow an attacker to access private data or internal services, potentially leading to a breach of sensitive information.

Technologies: [LobeHub Lobe Chat](https://junglewise.ai/threats/technologies/lobe-chat), [@lobehub/chat (npm)](https://junglewise.ai/threats/technologies/lobehub-chat). Vendors: [LobeHub](https://junglewise.ai/threats/vendors/lobehub), [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2024-47066 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-47066 being exploited in the wild.

**How severe is CVE-2024-47066?** Low severity, with a CVSS score of 3.1, published 23 September 2024.

**Which products and versions are affected?** LobeHub Lobe Chat <= 1.19.12; @lobehub/chat (npm) SEMVER:introduced=0,fixed=1.19.13.

**Is there a fix for CVE-2024-47066?** Yes. @lobehub/chat (npm): upgrade to 1.19.13 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2024-47066 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2024-47066?** Check whether you run LobeHub Lobe Chat or @lobehub/chat (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- @lobehub/chat (npm): upgrade to 1.19.13 or later

  ```sh
  npm install @lobehub/chat@1.19.13
  ```


## Technical details

A Server-Side Request Forgery (SSRF) vulnerability exists in Lobe Chat's proxy route (`src/app/api/proxy/route.ts`). While the application implemented initial SSRF protections, it failed to account for HTTP redirects. An attacker can provide a URL to a malicious external server that issues a redirect to internal resources, such as loopback addresses (localhost) or private network IPs. This bypasses the existing validation logic, allowing the attacker to probe or interact with internal services. The vulnerability is tracked as an insufficient fix for a previous SSRF issue (CVE-2024-32964). A fix is available in version 1.19.13 which improves redirect handling.

## Affected products

- LobeHub Lobe Chat <= 1.19.12

## Identifiers

- CVE-2024-47066
- GHSA-3fc8-2r3f-8wrg

## Timeline

- 2024-09-23: advisory: GHSA-3fc8-2r3f-8wrg published
- 2024-09-23: patched: Version 1.19.13 released

## References

- [https://github.com/lobehub/lobe-chat/security/advisories/GHSA-3fc8-2r3f-8wrg](https://github.com/lobehub/lobe-chat/security/advisories/GHSA-3fc8-2r3f-8wrg)
- [https://github.com/lobehub/lobe-chat/security/advisories/GHSA-mxhq-xw3g-rphc](https://github.com/lobehub/lobe-chat/security/advisories/GHSA-mxhq-xw3g-rphc)
- [https://github.com/lobehub/lobe-chat/commit/e960a23b0c69a5762eb27d776d33dac443058faf](https://github.com/lobehub/lobe-chat/commit/e960a23b0c69a5762eb27d776d33dac443058faf)
- [https://github.com/lobehub/lobe-chat](https://github.com/lobehub/lobe-chat)
- [https://github.com/lobehub/lobe-chat/blob/main/src/app/api/proxy/route.ts](https://github.com/lobehub/lobe-chat/blob/main/src/app/api/proxy/route.ts)

## Related threats

- [LobeHub SSRF and cookie injection in webapi proxy](https://junglewise.ai/threats/cve-2026-54157-lobehub-ssrf-and-cookie-injection-in-webapi-proxy)
- [LobeHub authentication bypass via forgeable X-lobe-chat-auth header](https://junglewise.ai/threats/cve-2026-39411-lobehub-authentication-bypass-via-forgeable-x-lobe-chat-auth)
- [LobeHub improper authorization in presigned file upload](https://junglewise.ai/threats/cve-2026-23835-lobehub-improper-authorization-in-presigned-file-upload)
- [Lobe Chat stored XSS in Mermaid artifact renderer escalating to RCE](https://junglewise.ai/threats/cve-2026-23733-lobe-chat-stored-xss-in-mermaid-artifact-renderer-escalating-to)
- [Lobe Chat IDOR in Knowledge Base file removal](https://junglewise.ai/threats/cve-2026-23522-lobe-chat-idor-in-knowledge-base-file-removal)
