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

- Severity: Medium 6.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-05T18:04:53.000Z
- Modified: 2026-06-17T10:47:21.783Z
- Also known as: GHSA-xq4x-622m-q8fq
- Weaknesses: CWE-78, CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- lobehub lobehub: < 2.1.48
- @lobehub/lobehub (npm): up to 2.1.26

## Every score

- GitHub_M: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:L/A:N`
- GitHub: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:L/A:N`

## References

- <https://github.com/lobehub/lobehub/security/advisories/GHSA-xq4x-622m-q8fq> (exploit, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42045> (advisory)
- <https://github.com/lobehub/lobehub> (package)

## Sources

- CVE List: [CVE-2026-42045](https://www.cve.org/CVERecord?id=CVE-2026-42045), CVE Terms of Use, modified 2026-05-12
- GitHub Advisory Database: [GHSA-xq4x-622m-q8fq](https://github.com/advisories/GHSA-xq4x-622m-q8fq), CC-BY-4.0, modified 2026-05-13
- NVD: [CVE-2026-42045](https://nvd.nist.gov/vuln/detail/CVE-2026-42045), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-42045 · Whole record: https://cve.day/CVE-2026-42045.json · Rebuilt by cve.day 2026-11-25T22:59:21.442Z
