7.1
HIGH CVSS 3.1
CVE-2026-54070
SiYuan: Stored XSS in Bazaar marketplace via package README event handlers
Description

SiYuan is an open-source personal knowledge management system. Prior to 3.7.0, renderPackageREADME in kernel/bazaar/readme.go renders a Bazaar package README from Markdown to HTML with the lute engine and SetSanitize(true). The lute sanitizer is an event-handler blocklist: allowAttr rejects only attribute names present in a fixed eventAttrs map copied from the w3schools legacy handler list. That map omits modern event handlers. onpointerover, onpointerdown, onauxclick, onbeforetoggle, onfocusin, onanimationstart, and ontransitionend are not in the list, so the sanitizer passes them through verbatim on any tag. The frontend assigns the rendered HTML to mdElement.innerHTML in app/src/config/bazaar.ts with no client-side DOMPurify on this path, into a normal element in the main document (no iframe, no sandbox). The kernel sends no Content-Security-Policy, X-Frame-Options, or X-Content-Type-Options header on any response, so an inline handler runs when its event fires. The README is rendered when an Administrator opens a package in Settings → Marketplace, after the one-time marketplace trust consent. Install is not required. Result: a third-party Bazaar package author runs JavaScript in the Administrator's authenticated SiYuan origin when the Administrator views and interacts with the package listing, and gains full control of the workspace. This vulnerability is fixed in 3.7.0.

INFO

Published Date :

June 24, 2026, 10:16 p.m.

Last Modified :

Oct. 25, 2026, 11:10 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-54070 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 B3log siyuan
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 HIGH MITRE-CVE
CVSS 3.1 HIGH [email protected]
Solution
Update SiYuan to version 3.7.0 or later to fix cross-site scripting vulnerabilities.
  • Update SiYuan to version 3.7.0.
  • Apply vendor patches if available.
  • Review package README rendering.
  • Sanitize user-supplied HTML content.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-54070.

URL Resource
https://github.com/siyuan-note/siyuan/security/advisories/GHSA-w7cg-whh7-xp28
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-54070 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-54070 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-54070 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Translated by [email protected]

    Oct. 25, 2026

    Action Type Old Value New Value
    Added Translation Title: siyuan de siyuan-note, Description: SiYuan es un sistema de gestión de conocimiento personal de código abierto. Antes de la versión 3.7.0, renderPackageREADME en kernel/bazaar/readme.go renderiza un README de paquete de Bazaar de Markdown a HTML con el motor lute y SetSanitize(true). El saneador de lute es una lista negra de gestores de eventos: allowAttr rechaza solo los nombres de atributos presentes en un mapa eventAttrs fijo copiado de la lista de gestores heredados de w3schools. Ese mapa omite los gestores de eventos modernos. onpointerover, onpointerdown, onauxclick, onbeforetoggle, onfocusin, onanimationstart y ontransitionend no están en la lista, por lo que el saneador los pasa textualmente en cualquier etiqueta. El frontend asigna el HTML renderizado a mdElement.innerHTML en app/src/config/bazaar.ts sin DOMPurify del lado del cliente en esta ruta, en un elemento normal en el documento principal (sin iframe, sin sandbox). El kernel no envía ningún encabezado Content-Security-Policy, X-Frame-Options o X-Content-Type-Options en ninguna respuesta, por lo que un gestor en línea se ejecuta cuando se dispara su evento. El README se renderiza cuando un Administrador abre un paquete en Ajustes ? Marketplace, después del consentimiento de confianza único del marketplace. La instalación no es necesaria. Resultado: un autor de paquete de Bazaar de terceros ejecuta JavaScript en el origen autenticado de SiYuan del Administrador cuando el Administrador ve e interactúa con la lista de paquetes, y obtiene control total del espacio de trabajo. Esta vulnerabilidad se corrige en la versión 3.7.0.
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jun. 26, 2026

    Action Type Old Value New Value
    Added SSVC {'id': 'CVE-2026-54070', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-06-26T18:14:37.374858Z'}
  • New CVE Received by [email protected]

    Jun. 24, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'siyuan-note', 'product': 'siyuan', 'versions': [{'status': 'affected', 'version': '< 3.7.0'}]}]
    Added Description SiYuan is an open-source personal knowledge management system. Prior to 3.7.0, renderPackageREADME in kernel/bazaar/readme.go renders a Bazaar package README from Markdown to HTML with the lute engine and SetSanitize(true). The lute sanitizer is an event-handler blocklist: allowAttr rejects only attribute names present in a fixed eventAttrs map copied from the w3schools legacy handler list. That map omits modern event handlers. onpointerover, onpointerdown, onauxclick, onbeforetoggle, onfocusin, onanimationstart, and ontransitionend are not in the list, so the sanitizer passes them through verbatim on any tag. The frontend assigns the rendered HTML to mdElement.innerHTML in app/src/config/bazaar.ts with no client-side DOMPurify on this path, into a normal element in the main document (no iframe, no sandbox). The kernel sends no Content-Security-Policy, X-Frame-Options, or X-Content-Type-Options header on any response, so an inline handler runs when its event fires. The README is rendered when an Administrator opens a package in Settings → Marketplace, after the one-time marketplace trust consent. Install is not required. Result: a third-party Bazaar package author runs JavaScript in the Administrator's authenticated SiYuan origin when the Administrator views and interacts with the package listing, and gains full control of the workspace. This vulnerability is fixed in 3.7.0.
    Added CVSS V3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L
    Added CWE CWE-79
    Added CWE CWE-184
    Added Reference https://github.com/siyuan-note/siyuan/security/advisories/GHSA-w7cg-whh7-xp28
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.