# CVE-2026-54157: LobeHub SSRF and cookie injection in webapi proxy

Source: https://junglewise.ai/threats/cve-2026-54157-lobehub-ssrf-and-cookie-injection-in-webapi-proxy  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-23. Updated: 2026-06-23  
License: CC BY 4.0 with a link back

CVE-2026-54157 · Severity: critical · CVSS 9 · Published 2026-06-23

LobeHub, an AI agent collaboration platform, contained a security flaw in its web proxy component. An attacker could use this flaw to make the LobeHub servers send unauthorized requests to other websites or internal systems. This could lead to the exposure of internal infrastructure details or the injection of malicious cookies into a user's browser, potentially allowing an attacker to hijack user sessions.

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

## Quick answers

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

**How severe is CVE-2026-54157?** Critical severity, with a CVSS score of 9, published 23 June 2026.

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

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

**How is CVE-2026-54157 attacked?** It is attacked over the network, in a hosted service.

**Am I affected by CVE-2026-54157?** Check whether you run LobeHub Lobe Chat or @lobehub/lobehub (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/lobehub (npm): upgrade to 2.1.57 or later

  ```sh
  npm install @lobehub/lobehub@2.1.57
  ```


## Technical details

An unauthenticated Server-Side Request Forgery (SSRF) vulnerability exists in LobeHub's `/webapi/proxy` endpoint. The root cause is a missing `checkAuth()` wrapper in the route handler located at `src/app/(backend)/webapi/proxy/route.ts`, which allows the endpoint to accept and fetch any URL provided in a POST body without authentication. Beyond standard SSRF, the proxy reflects upstream `Set-Cookie` headers, enabling attackers to perform cookie injection on the `lobehub.com` domain. This can be leveraged for session fixation attacks against Clerk-managed sessions or to leak Vercel deployment metadata (e.g., `X-Vercel-Id` headers). The vulnerability is resolved in version 2.1.57 by implementing proper authentication checks.

## Affected products

- LobeHub LobeHub < 2.1.57

## Identifiers

- CVE-2026-54157
- GHSA-xmwj-c75x-6346

## Timeline

- 2026-06-03: advisory: Initial GitHub security advisory published
- 2026-06-23: disclosed: CVE-2026-54157 published to NVD
- 2026-06-23: patched: Fix released in version 2.1.57

## References

- [https://github.com/lobehub/lobehub/security/advisories/GHSA-xmwj-c75x-6346](https://github.com/lobehub/lobehub/security/advisories/GHSA-xmwj-c75x-6346)

## Related threats

- [LobeHub LobeChat XSS to RCE via Electron IPC interface](https://junglewise.ai/threats/cve-2026-42045-lobehub-lobechat-xss-to-rce-via-electron-ipc-interface)
- [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)
- [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 server-side request forgery in web crawler](https://junglewise.ai/threats/cve-2025-62505-lobe-chat-server-side-request-forgery-in-web-crawler)
- [lobe-chat open redirect via X-Forwarded-Host header](https://junglewise.ai/threats/cve-2025-59426-lobe-chat-open-redirect-via-x-forwarded-host-header)
