Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-42045

MEDIUM 6.2EPSS 21%

LobeHub: Cross-Site Scripting(XSS) escalate to Remote Code Execution(RCE)

Also known as GHSA-xq4x-622m-q8fq

Mitigation

  • Upgrade lobehub to 2.1.48 or later.

Who should check

  • Projects that depend on npm package @lobehub/lobehub (<= 2.1.26)
  • Anyone running lobehub < 2.1.48

Vulnerability facts

Affected
@lobehub/lobehub <= 2.1.26
Fixed in
lobehub 2.1.48
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
6.2 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: High
  • User interaction: Required
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: High
  • Integrity impact: Low
  • Availability impact: None
EPSS
0.35% chance of exploitation in 30 days (percentile 21, 2026-11-26)
CWE
CWE-79
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
npm @lobehub/lobehub<= 2.1.26—osv
lobehub< 2.1.48—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-42045. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-42045.md
Affected: @lobehub/lobehub <= 2.1.26
Fixed in: lobehub 2.1.48

Steps:
1. Search this machine and project for @lobehub/lobehub (npm), lobehub: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-42045 being exploited?

There is no confirmed exploitation: CVE-2026-42045 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-42045?

Medium: CVSS 6.2 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2026-42045?

@lobehub/lobehub <= 2.1.26.

Is there a fix for CVE-2026-42045?

Yes. Fixed in lobehub 2.1.48. Upgrade lobehub to 2.1.48 or later.

How do I check if I'm affected by CVE-2026-42045?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors