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…
EPSS 0.0%top 87%

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 is an open-source personal knowledge management system. In versions 3.6.1 through 3.6.3, a prior fix for XSS in bazaar README rendering (incomplete fix for CVE-2026-33066) enabled the Lute HTML sanitizer, but the sanitizer does not block iframe tags, and its URL-prefix blocklist does not effectively filter srcdoc attributes which contain raw HTML rather than URLs. A malicious bazaar package author can include an iframe with a srcdoc attribute containing embedded scripts in their README. When other users view the package in SiYuan's marketplace UI, the payload executes in the Electron context with full application privileges, enabling arbitrary code execution on the user's machine. This issue has been fixed in version 3.6.4.

CVSS v4.0

Score 5.3medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/24/2026, 16:05:09 UTC

Technical Analysis

SiYuan, an open-source personal knowledge management system, had an incomplete fix for an XSS vulnerability in its bazaar README rendering component. The Lute HTML sanitizer enabled in versions 3.6.1 through 3.6.3 does not block iframe tags and its URL-prefix blocklist does not effectively filter srcdoc attributes, which can contain raw HTML including scripts. A malicious bazaar package author can exploit this by embedding an iframe with a crafted srcdoc attribute in their README. When other users view this README in the marketplace UI, the embedded scripts execute within the Electron application context, granting full application privileges and enabling arbitrary code execution. This vulnerability is addressed in version 3.6.4.

Potential Impact

Successful exploitation allows a malicious bazaar package author to execute arbitrary code on the victim's machine with full application privileges via the Electron context. This can lead to compromise of the user's system and data. The vulnerability affects SiYuan versions prior to 3.6.4. There are no known exploits in the wild as of the published date.

Mitigation Recommendations

Upgrade SiYuan to version 3.6.4 or later, where this vulnerability has been fixed. Since the vendor advisory indicates the issue is resolved in 3.6.4, applying this official fix is the recommended remediation. No additional mitigations are specified.

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/24/2026, 4:05:09 PM

Last updated: 5/31/2026, 4:14:45 PM

Views: 80

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