CVE-2026-42045: LobeChat artifact XSS chains to arbitrary command execution
In LobeHub/LobeChat before 2.1.48, unmatched custom tags in the Artifacts renderer fall back to HTML rendering, so an attacker who induces the LLM to emit malicious tags can trigger client-side XSS. The XSS can reach the Electron main process's unfiltered runCommand IPC interface to execute arbitrary system commands with the user's privileges.
Disclosed 12 May 2026 · Record updated 13 September 2026
Impact
Attacker-controlled model output could execute JavaScript in the client and, via the exposed Electron runCommand IPC, run arbitrary system commands with the current user's privileges. Fixed in version 2.1.48.
Our coverage
No articles linked to this incident yet.
Sources
- nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-42045
