CVE-2026-42045 LobeHub: Cross-Site Scripting(XSS) escalate to Remote Code Execution(RCE)
- Exploited in the wild
- Not known
- Fix
- None listed
What is CVE-2026-42045?
CVE-2026-42045 is a medium-severity vulnerability in lobehub, published on 12 May 2026.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2026-42045?
2 open source packages ship an affected version, including @lobehub/lobehub.
| Package | Affected | Fixed in |
|---|---|---|
@lobehub/lobehub npm | All versions to 2.1.26 | None |
@lobehub/lobehub npm | All versions to 2.1.26 | None |
How do I fix CVE-2026-42045?
No fix has been published for CVE-2026-42045 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-42045 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42045 exists.
Sources
Also known as GHSA-xq4x-622m-q8fq.