# CVE-2026-58580: LobeHub LobeChat broken object-level authorization in MessageModel

Source: https://junglewise.ai/threats/cve-2026-58580-lobehub-lobechat-broken-object-level-authorization-in  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-02. Updated: 2026-07-02  
License: CC BY 4.0 with a link back

CVE-2026-58580 · Severity: medium · CVSS 5.9 · Published 2026-07-02

LobeChat, an open-source AI chat framework, contains a security flaw in its multi-user server deployments. An authenticated user can modify another person's chat data—including plugin settings, text-to-speech records, and translations—if they know the specific ID of the victim's message. This could allow an attacker to tamper with a victim's conversation history or inject malicious tool-call metadata, though the attack is difficult to perform because message IDs are not easily guessable.

Technologies: [LobeHub LobeChat](https://junglewise.ai/threats/technologies/lobechat). Vendors: [LobeHub](https://junglewise.ai/threats/vendors/lobehub).

## Quick answers

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

**How severe is CVE-2026-58580?** Medium severity, with a CVSS score of 5.9, published 2 July 2026.

**Which products and versions are affected?** LobeHub LobeChat through 2.2.9.

**Is there a fix for CVE-2026-58580?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

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

**Am I affected by CVE-2026-58580?** Check whether you run LobeHub LobeChat 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.

## Technical details

LobeChat's MessageModel implementation contains a Broken Object-Level Authorization (BOLA) vulnerability (CWE-639). Specifically, the updateMessagePlugin, updatePluginState, updatePluginError, updateTTS, and updateTranslate methods filter database rows using only the message ID, failing to include the 'userId' scope required for multi-tenant isolation. An authenticated attacker can reach these methods via tRPC procedures and overwrite a victim's plugin tool-call metadata, state, text-to-speech, or translation records. Because the findMessagePlugin method also lacks user-scoping, the tampered content is served back to the victim. Exploitation is limited by the requirement that the attacker must obtain the victim's non-enumerable 12-character message identifier (nanoid).

## Affected products

- LobeHub LobeChat through 2.2.9

## Timeline

- 2026-06-04: disclosed: Private disclosure to vendor via GitHub Security Advisory
- 2026-07-02: advisory: Public disclosure and NVD publication

## References

- [https://github.com/lobehub/lobehub/issues/16534](https://github.com/lobehub/lobehub/issues/16534)
- [https://www.vulncheck.com/advisories/lobechat-broken-object-level-authorization-in-message-sub-resource-writes](https://www.vulncheck.com/advisories/lobechat-broken-object-level-authorization-in-message-sub-resource-writes)

## Related threats

- [LobeHub LobeChat webhook signature verification bypass](https://junglewise.ai/threats/cve-2026-85621-lobehub-lobechat-webhook-signature-verification-bypass)
- [LobeChat stored XSS in user avatar upload](https://junglewise.ai/threats/cve-2026-72594-lobechat-stored-xss-in-user-avatar-upload)
- [LobeHub LobeChat broken object level authorization in chat-group agents](https://junglewise.ai/threats/cve-2026-59100-lobehub-lobechat-broken-object-level-authorization-in-chat-group)
- [LobeHub LobeChat broken access control in RAG semantic search](https://junglewise.ai/threats/cve-2026-59098-lobehub-lobechat-broken-access-control-in-rag-semantic-search)
- [LobeHub LobeChat SSRF in skill import and topic cover endpoints](https://junglewise.ai/threats/cve-2026-59095-lobehub-lobechat-ssrf-in-skill-import-and-topic-cover-endpoints)
