CVE-2026-54067

SiYuan is an open-source personal knowledge management system. Prior to 3.7.0, CSS snippet body containing </style> breaks out of its surrounding <style> tag when renderSnippet() interpolates it via insertAdjacentHTML. A payload like runs arbitrary JavaScript in the renderer. On Electron desktop builds the renderer runs with nodeIntegration:true, so require('child_process') is reachable from the injected handler and the XSS chains to host RCE. Snippets sync via the workspace repository, so an attacker with write access to any synced workspace plants the payload once and it fires on every device that pulls. The bug also bypasses the user's enabledCSS / enabledJS separation. A user who turned enabledJS off was making a deliberate call not to run untrusted JavaScript; the CSS path runs it anyway. This vulnerability is fixed in 3.7.0.
Configurations

No configuration.

History

25 Oct 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) SiYuan es un sistema de gestión de conocimiento personal de código abierto. Antes de la versión 3.7.0, el cuerpo de un fragmento CSS que contiene [/style] se escapa de su etiqueta [style] circundante cuando renderSnippet() lo interpola a través de insertAdjacentHTML. Una carga útil como ejecuta JavaScript arbitrario en el renderizador. En las compilaciones de escritorio de Electron, el renderizador se ejecuta con nodeIntegration:true, por lo que require(’child_process’) es accesible desde el gestor inyectado y el XSS se encadena a RCE del host. Los fragmentos se sincronizan a través del repositorio del espacio de trabajo, por lo que un atacante con acceso de escritura a cualquier espacio de trabajo sincronizado implanta la carga útil una vez y se activa en cada dispositivo que la descarga. El error también omite la separación enabledCSS / enabledJS del usuario. Un usuario que desactivó enabledJS estaba tomando una decisión deliberada de no ejecutar JavaScript no confiable; la ruta CSS lo ejecuta de todos modos. Esta vulnerabilidad está corregida en la versión 3.7.0.

Information

Published : 2026-06-24 22:16

Updated : 2026-10-25 23:10


NVD link : CVE-2026-54067

Mitre link : CVE-2026-54067

CVE.ORG link : CVE-2026-54067


JSON object : View

Products Affected

No product.

CWE
CWE-79

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

CWE-1188

Initialization of a Resource with an Insecure Default