CVE-2026-54070
Full vulnerability record from the local CVENow database.
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.
View original CVE JSON
{
"id": "CVE-2026-54070",
"sourceIdentifier": "[email protected]",
"published": "2026-06-24T22:16:48.583",
"lastModified": "2026-10-25T23:10:00.167",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "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."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "siyuan-note",
"product": "siyuan",
"versions": [
{
"version": "< 3.7.0",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L",
"baseScore": 7.1,
"baseSeverity": "HIGH",
"attackVector": "NETWORK",
"attackComplexity": "HIGH",
"privilegesRequired": "NONE",
"userInteraction": "REQUIRED",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "LOW"
},
"exploitabilityScore": 1.6,
"impactScore": 5.5
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-06-26T18:14:37.374858Z",
"id": "CVE-2026-54070",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "total"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-79"
},
{
"lang": "en",
"value": "CWE-184"
}
]
}
],
"references": [
{
"url": "https://github.com/siyuan-note/siyuan/security/advisories/GHSA-w7cg-whh7-xp28",
"source": "[email protected]"
}
]
}