CVE-2026-47900

Stored XSS via Unsanitized Plugin Metadata in Logseq

Published Jun 9, 2026 CVSS 4.0 · 4.6 Medium EPSS < 1% KEV · Not listed
Description
Logseq is vulnerable to a stored cross-site scripting (XSS). A malicious plugin can include a JavaScript payload in the "name" field of its "package.json" file, which is rendered using "innerHTML" without proper sanitization, allowing the execution of arbitrary code in the privileged host context.
While only version v0.10.15 was tested and confirmed as vulnerable, status of other versions is unknown since this issue was not addressed by a patch.

Analysis

AI-generated

Technical impact

A plugin packaged in Logseq can place arbitrary JavaScript in the package.json field named "name", and that field is rendered with innerHTML in the interface without any sanitization. The payload is stored and executed when the interface loads, allowing a malicious plugin to run code with the same privileges as the host application. This stored XSS can lead to the theft of user data, session hijacking, or more severe attacks if the host context is privileged.

Affected Systems

The vulnerability was confirmed in Logseq version v0.10.15. No official patch has been released, and the impact on later or earlier releases is not documented. Users running the affected version or a future version that still uses the same unsanitized rendering path are potentially at risk; anyone who installs a malicious plugin could trigger the attacker code.

Risk and Exploitability

The score of 4.6 indicates moderate severity, and the EPSS is currently not available. The vulnerability is not recorded in the CISA KEV catalog. Likely the attack vector is installation of a malicious or compromised plugin by a user; once the plugin is loaded the XSS payload executes automatically. There are no known public exploits and mitigation is mainly to avoid installing untrusted plugins or to update Logseq when a fix is released.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Verify that all installed plugins come from trusted or signed sources and reject any package whose package.json contains a unsanitized "name" field.
  • Disable or uninstall the Logseq plugin system until the vendor releases a security fix, preventing new package metadata from being rendered.
  • Monitor the Logseq release channel for an update that addresses the unsanitized metadata rendering and upgrade as soon as it becomes available.

Generated by OpenCVE AI on June 9, 2026 at 15:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Logseq
Logseq logseq
Vendors & Products Logseq
Logseq logseq
Type Values Removed Values Added
Description Logseq is vulnerable to a stored cross-site scripting (XSS). A malicious plugin can include a JavaScript payload in the "name" field of its "package.json" file, which is rendered using "innerHTML" without proper sanitization, allowing the execution of arbitrary code in the privileged host context. While only version v0.10.15 was tested and confirmed as vulnerable, status of other versions is unknown since this issue was not addressed by a patch.
Title Stored XSS via Unsanitized Plugin Metadata in Logseq
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 4.6, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
CERT-PL
Published
Updated
Jun 9, 2026, 2:39 PM
Reserved
May 20, 2026, 2:37 PM
Status
Deferred
Published
Jun 9, 2026, 2:16 PM
Modified
Jul 23, 2026, 8:10 AM