Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-40922: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siyuan-note siyuan

0
Medium
VulnerabilityCVE-2026-40922cvecve-2026-40922cwe-79
Published: Thu Apr 16 2026 (04/16/2026, 23:14:00 UTC)
Source: CVE Database V5
Vendor/Project: siyuan-note
Product: siyuan

Description

SiYuan versions 3. 6. 1 through 3. 6. 3 contain a cross-site scripting (XSS) vulnerability due to incomplete sanitization of iframe tags with srcdoc attributes in bazaar README rendering. This allows a malicious package author to embed scripts that execute in the Electron application context with full privileges when viewed by other users. The issue is fixed in version 3. 6. 4.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/16/2026, 23:46:52 UTC

Technical Analysis

The vulnerability in SiYuan (versions 3.6.1 to 3.6.3) arises from an incomplete fix for a prior XSS issue in bazaar README rendering. The Lute HTML sanitizer was enabled but does not block iframe tags, and its URL-prefix blocklist fails to filter srcdoc attributes containing raw HTML. A malicious bazaar package author can exploit this by embedding an iframe with a crafted srcdoc attribute that includes executable scripts. When other users view the package in the marketplace UI, the scripts run in the Electron context with full application privileges, enabling arbitrary code execution on the user's machine. This vulnerability is addressed in SiYuan version 3.6.4.

Potential Impact

Successful exploitation allows arbitrary code execution within the Electron application context on the victim's machine, potentially compromising the user's system with the same privileges as the application. This could lead to unauthorized actions or data compromise within the user's environment.

Mitigation Recommendations

Upgrade SiYuan to version 3.6.4 or later, where this vulnerability has been fixed. Since this is a client-side application vulnerability, applying the official update is the recommended remediation. Patch status is confirmed by the vendor stating the issue is fixed in version 3.6.4.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-15T20:40:15.517Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69e1716682d89c981fde6ff9

Added to database: 4/16/2026, 11:31:50 PM

Last enriched: 4/16/2026, 11:46:52 PM

Last updated: 4/17/2026, 12:52:40 AM

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses