Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-54070

HIGH 7.1EPSS 15%

SiYuan: Stored XSS in Bazaar marketplace via package README event handlers

Also known as GHSA-w7cg-whh7-xp28, GO-2026-5965

Mitigation

  • Upgrade github.com/siyuan-note/siyuan/kernel to 0.0.0-20260628153353-2d5d72223df4 or later.

Who should check

  • Projects that depend on Go package github.com/siyuan-note/siyuan/kernel (< 0.0.0-20260628153353-2d5d72223df4)
  • Anyone running siyuan-note siyuan < 3.7.0

Vulnerability facts

Affected
github.com/siyuan-note/siyuan/kernel < 0.0.0-20260628153353-2d5d72223df4
Fixed in
0.0.0-20260628153353-2d5d72223df4
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: None
  • User interaction: Required
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: Low
EPSS
0.30% chance of exploitation in 30 days (percentile 15, 2026-11-26)
CWE
CWE-79, CWE-184
Published
Modified

Description

SiYuan is an open-source personal knowledge management system. Prior to 3.7.0, renderPackageREADME in kernel/bazaar/readme.go renders a Bazaar package README from Markdown to HTML with the lute engine and SetSanitize(true). The lute sanitizer is an event-handler blocklist: allowAttr rejects only attribute names present in a fixed eventAttrs map copied from the w3schools legacy handler list. That map omits modern event handlers. onpointerover, onpointerdown, onauxclick, onbeforetoggle, onfocusin, onanimationstart, and ontransitionend are not in the list, so the sanitizer passes them through verbatim on any tag. The frontend assigns the rendered HTML to mdElement.innerHTML in app/src/config/bazaar.ts with no client-side DOMPurify on this path, into a normal element in the main document (no iframe, no sandbox). The kernel sends no Content-Security-Policy, X-Frame-Options, or X-Content-Type-Options header on any response, so an inline handler runs when its event fires. The README is rendered when an Administrator opens a package in Settings → Marketplace, after the one-time marketplace trust consent. Install is not required. Result: a third-party Bazaar package author runs JavaScript in the Administrator's authenticated SiYuan origin when the Administrator views and interacts with the package listing, and gains full control of the workspace. This vulnerability is fixed in 3.7.0.

Affected and fixed versions

Package / productAffectedFixedSource
Go github.com/siyuan-note/siyuan/kernel< 0.0.0-20260628153353-2d5d72223df40.0.0-20260628153353-2d5d72223df4osv
siyuan-note siyuan< 3.7.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-54070. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-54070.md
Affected: github.com/siyuan-note/siyuan/kernel < 0.0.0-20260628153353-2d5d72223df4
Fixed in: 0.0.0-20260628153353-2d5d72223df4

Steps:
1. Search this machine and project for github.com/siyuan-note/siyuan/kernel (Go), siyuan-note siyuan: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-54070 being exploited?

There is no confirmed exploitation: CVE-2026-54070 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-54070?

High: CVSS 7.1 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2026-54070?

github.com/siyuan-note/siyuan/kernel < 0.0.0-20260628153353-2d5d72223df4.

Is there a fix for CVE-2026-54070?

Yes. Fixed in 0.0.0-20260628153353-2d5d72223df4. Upgrade github.com/siyuan-note/siyuan/kernel to 0.0.0-20260628153353-2d5d72223df4 or later.

How do I check if I'm affected by CVE-2026-54070?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors