# CVE-2026-54067: SiYuan: Stored XSS to RCE via CSS-snippet <style> breakout in renderSnippet()

- Severity: Critical 9.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-24T21:14:38.173Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-mvjr-vv3c-w4qv, GO-2026-5963
- Weaknesses: CWE-79, CWE-1188
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- siyuan-note siyuan: < 3.7.0
- github.com/siyuan-note/siyuan/kernel (Go): before 0.0.0-20260628153353-2d5d72223df4

## Every score

- GitHub_M: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-mvjr-vv3c-w4qv> (exploit, advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54067> (advisory)
- <https://github.com/siyuan-note/siyuan> (package)

## Sources

- CVE List: [CVE-2026-54067](https://www.cve.org/CVERecord?id=CVE-2026-54067), CVE Terms of Use, modified 2026-06-25
- GitHub Advisory Database: [GHSA-mvjr-vv3c-w4qv](https://github.com/advisories/GHSA-mvjr-vv3c-w4qv), CC-BY-4.0, modified 2026-07-21
- Go Vulnerability Database: [GO-2026-5963](https://pkg.go.dev/vuln/GO-2026-5963), CC-BY-4.0, modified 2026-07-21
- NVD: [CVE-2026-54067](https://nvd.nist.gov/vuln/detail/CVE-2026-54067), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-54067 · Whole record: https://cve.day/CVE-2026-54067.json · Rebuilt by cve.day 2026-11-25T22:59:25.760Z
