# CVE-2026-54070: SiYuan: Stored XSS in Bazaar marketplace via package README event handlers

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L`
- 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.30%, higher than 15% of CVEs (2026-11-30)
- Published: 2026-06-24T21:18:24.160Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-w7cg-whh7-xp28, GO-2026-5965
- Weaknesses: CWE-79, CWE-184
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(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 7.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L`

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-w7cg-whh7-xp28> (advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54070> (advisory)
- <https://github.com/siyuan-note/siyuan> (package)

## Sources

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

---

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