CVE-2026-54070: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siyuan-note siyuan
SiYuan versions prior to 3.7.0 contain a cross-site scripting (XSS) vulnerability in the rendering of Bazaar package README files. The vulnerability arises because the Markdown-to-HTML renderer uses a sanitizer that fails to block certain modern event handler attributes, allowing malicious JavaScript to execute in the Administrator's browser when viewing package listings. This can lead to full control of the workspace by an attacker. The issue is fixed in version 3.7.0.
AI Analysis
Technical Summary
CVE-2026-54070 is a cross-site scripting vulnerability in SiYuan, an open-source personal knowledge management system. The vulnerability exists in versions before 3.7.0 in the renderPackageREADME function, which converts Markdown README files to HTML using the lute engine with a sanitizer that only blocks legacy event handler attributes. Modern event handlers such as onpointerover and onfocusin are not blocked, allowing malicious scripts embedded in these attributes to execute when the Administrator views a Bazaar package README. The rendered HTML is inserted directly into the DOM without additional client-side sanitization or protective HTTP headers, enabling script execution in the Administrator's authenticated context. This allows a third-party package author to execute arbitrary JavaScript and gain full control over the workspace. The vulnerability is fixed in version 3.7.0.
Potential Impact
An attacker who authors a malicious third-party Bazaar package can execute arbitrary JavaScript code in the context of an authenticated Administrator when the Administrator views the package listing. This leads to a full compromise of the SiYuan workspace, including potential data theft, manipulation, or further system compromise. The vulnerability requires the Administrator to view and interact with the malicious package listing after granting marketplace trust consent. There are no known exploits in the wild.
Mitigation Recommendations
This vulnerability is fixed in SiYuan version 3.7.0. Users should upgrade to version 3.7.0 or later to remediate this issue. No additional mitigations such as CSP or client-side sanitization are present in affected versions. Patch status is not explicitly stated in the vendor advisory, but the fix is confirmed in version 3.7.0. Until upgrading, administrators should avoid opening untrusted Bazaar package listings.
CVE-2026-54070: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siyuan-note siyuan
Description
SiYuan versions prior to 3.7.0 contain a cross-site scripting (XSS) vulnerability in the rendering of Bazaar package README files. The vulnerability arises because the Markdown-to-HTML renderer uses a sanitizer that fails to block certain modern event handler attributes, allowing malicious JavaScript to execute in the Administrator's browser when viewing package listings. This can lead to full control of the workspace by an attacker. The issue is fixed in version 3.7.0.
CVSS v3.1
Score 7.1high
Affected software
pkg:github/siyuan-note/siyuanRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-54070 is a cross-site scripting vulnerability in SiYuan, an open-source personal knowledge management system. The vulnerability exists in versions before 3.7.0 in the renderPackageREADME function, which converts Markdown README files to HTML using the lute engine with a sanitizer that only blocks legacy event handler attributes. Modern event handlers such as onpointerover and onfocusin are not blocked, allowing malicious scripts embedded in these attributes to execute when the Administrator views a Bazaar package README. The rendered HTML is inserted directly into the DOM without additional client-side sanitization or protective HTTP headers, enabling script execution in the Administrator's authenticated context. This allows a third-party package author to execute arbitrary JavaScript and gain full control over the workspace. The vulnerability is fixed in version 3.7.0.
Potential Impact
An attacker who authors a malicious third-party Bazaar package can execute arbitrary JavaScript code in the context of an authenticated Administrator when the Administrator views the package listing. This leads to a full compromise of the SiYuan workspace, including potential data theft, manipulation, or further system compromise. The vulnerability requires the Administrator to view and interact with the malicious package listing after granting marketplace trust consent. There are no known exploits in the wild.
Mitigation Recommendations
This vulnerability is fixed in SiYuan version 3.7.0. Users should upgrade to version 3.7.0 or later to remediate this issue. No additional mitigations such as CSP or client-side sanitization are present in affected versions. Patch status is not explicitly stated in the vendor advisory, but the fix is confirmed in version 3.7.0. Until upgrading, administrators should avoid opening untrusted Bazaar package listings.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-11T18:24:35.097Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a3c501e4853345fc1e45c48
Added to database: 06/24/2026, 21:46:06 UTC
Last enriched: 06/24/2026, 22:02:21 UTC
Last updated: 06/24/2026, 22:54:27 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.