Skip to content
MediumVulnerabilityLLM-specific

CVE-2026-42045: LobeHub Electron IPC runCommand allows arbitrary command execution via XSS

Identifier
CVE-2026-42045
Published
Record updated
View JSON

Summary

LobeChat versions before 2.1.48 render custom tags in the Artifacts Portal through the default HTMLRenderer when no type matches, so LLM output containing malicious tags can trigger client-side XSS. The Electron main process exposes a runCommand IPC method that does not filter its command parameter, so an attacker who reaches window.parent.electronAPI through that XSS can run arbitrary system commands with the current user's privileges.

Mitigation

Fixed in 2.1.48.