---
title: "CVE-2026-54158: SiYuan: Stored XSS to RCE via attribute-view cell rendering in genAVValueHTML()"
url: https://erroneo.us/security/cve/CVE-2026-54158/
description: "CVE-2026-54158 (github.com/siyuan-note/siyuan/kernel (Go)): SiYuan is an open-source personal knowledge management system. Prior to 3.7.0, the…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-06-24
date_modified: 2026-07-10
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-54158"
kev: false
cvss: 9.9
epss: 0.00509
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2026-54158: SiYuan: Stored XSS to RCE via attribute-view cell rendering in genAVValueHTML()

**Signal:** Critical, preconditions apply. Severe if exploited, but exploitation needs conditions that may not apply to you. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 0.5% , percentile 43: FIRST’s model estimates a 0.5% chance of exploitation activity in the next 30 days, higher than 43% of all scored CVEs (low). EPSS is a probability, not a verdict.
- Needs an account (low (any account)). Exposure depends on who can log in.
- Only applies if your dependency tree includes github.com/siyuan-note/siyuan/kernel (Go) < 0.0.0-20260628153353-2d5d72223df4, fixed in 0.0.0-20260628153353-2d5d72223df4 . Check your lockfile, including transitive dependencies.

## What it is

SiYuan is an open-source personal knowledge management system. Prior to 3.7.0, the attribute-view (database) cell renderer genAVValueHTML interpolates cell content raw in four of its branches: text, url, phone, and mAsset. A cell value like or "> breaks out of its surrounding tag and runs arbitrary JavaScript in the renderer when the victim opens the block-attribute panel. On Electron desktop the renderer runs with nodeIntegration:true, so the XSS chains to host RCE via require('childprocess'). AV files live under the workspace and ride normal sync, so an attacker with write access to any synced workspace plants the payload once and it fires on every device that opens a panel containing that row.he kernel doesn't escape on the way in either, so the malicious cell persists byte-for-byte. There's no equivalent of the html.EscapeAttrVal call that protects block IAL attributes at kernel/model/blockial.go:261. This vulnerability is fixed in 3.7.0.

## Affected packages

- Go `github.com/siyuan-note/siyuan/kernel` < 0.0.0-20260628153353-2d5d72223df4 → fixed: 0.0.0-20260628153353-2d5d72223df4

## Affected products (CVE record)

- siyuan-note siyuan: < 3.7.0

## Severity

- GitHub_M CVSS 3.1: 9.9 `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 `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable no , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.51% probability of exploitation activity in the next 30 days; percentile 43.

## Sources

- [GitHub Advisory GHSA-5xfx-xj4h-5p7r](https://github.com/advisories/GHSA-5xfx-xj4h-5p7r)
- [CVE.org record CVE-2026-54158](https://www.cve.org/CVERecord?id=CVE-2026-54158)
- [NVD entry CVE-2026-54158](https://nvd.nist.gov/vuln/detail/CVE-2026-54158)
- [github.com](https://github.com/siyuan-note/siyuan/security/advisories/GHSA-5xfx-xj4h-5p7r)

---
Source page: https://erroneo.us/security/cve/CVE-2026-54158/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
