CVE-2026-65605
JSON

9.4critical

SiYuan before v3.7.2 Stored XSS to RCE via Attribute View

Severity
9.4critical CVSS:4.0 by VulnCheck
Exploit likelihood
0.65% (higher than 52% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

Description

SiYuan before v3.7.2 contains a stored cross-site scripting vulnerability in Attribute View (database) cell rendering. A Template column value is rendered as HTML via text/template without auto-escaping, and EscapeHTML is only applied when HasUnclosedHtmlTag returns true; because balanced self-closing tags such as <img> are skipped by that check, a payload like <img src=x onerror=...> is stored unescaped and later inserted into the page via innerHTML, executing when the database is viewed. Because the desktop renderer runs with nodeIntegration enabled, the injected script can reach require and escalate to arbitrary command execution.

Affected

Product or packageVersionsReported by
siyuan-note siyuanbefore 3.7.2
Not affected: 3.7.2
CVE List

All scores

VulnCheck9.4critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
VulnCheck9.6critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Classification

CWE-79

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

SiYuan before v3.7.2 contains a stored cross-site scripting vulnerability in Attribute View (database) cell rendering. A Template column value is rendered as HTML via text/template without auto-escaping, and EscapeHTML is only applied when HasUnclosedHtmlTag returns true; because balanced self-closing tags such as <img> are skipped by that check, a payload like <img src=x onerror=...> is stored unescaped and later inserted into the page via innerHTML, executing when the database is viewed. Because the desktop renderer runs with nodeIntegration enabled, the injected script can reach require and escalate to arbitrary command execution.

NVD (es)

SiYuan anterior a la v3.7.2 contiene una vulnerabilidad de cross-site scripting almacenado en la renderización de celdas de la Vista de Atributos (base de datos). Un valor de columna de Plantilla se renderiza como HTML a través de text/template sin auto-escapado, y EscapeHTML solo se aplica cuando HasUnclosedHtmlTag devuelve verdadero; porque las etiquetas autocerradas balanceadas como [img] son omitidas por esa verificación, una carga útil como <img src=x onerror_disabled=...> se almacena sin escapar y luego se inserta en la página a través de innerHTML, ejecutándose cuando se visualiza la base de datos. Debido a que el renderizador de escritorio se ejecuta con nodeIntegration habilitado, el script inyectado puede alcanzar require y escalar a la ejecución arbitraria de comandos.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-65605 changed 2026-09-17CVE Terms of Use
NVDCVE-2026-65605 changed 2026-10-24Public domain