Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @lobehub/lobehub
  4. ›
  5. CVE-2026-42045

CVE-2026-42045: LobeHub has a Cross-Site Scripting issue that escalates to Remote Code Execution

May 5, 2026

The vulnerability was automatically discovered by an ai agent and then manually verified.

LobeChat’s message rendering mechanism has a stored cross-site scripting (XSS) vulnerability. Combined with the Electron main process’s exposed insecure IPC interface, attackers can construct malicious payloads to achieve an attack chain from XSS to remote code execution (RCE).

The LobeChat team verified this vulnerability in lobehub v2.1.23, and it also exists in the latest version.

References

  • github.com/advisories/GHSA-xq4x-622m-q8fq
  • github.com/lobehub/lobehub
  • github.com/lobehub/lobehub/security/advisories/GHSA-xq4x-622m-q8fq
  • nvd.nist.gov/vuln/detail/CVE-2026-42045

Code Behaviors & Features

Detect and mitigate CVE-2026-42045 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.1.26

Solution

Unfortunately, there is no solution available yet.

Impact 6.2 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/@lobehub/lobehub/CVE-2026-42045.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 00:19:13 +0000.