平台
go
组件
github.com/siyuan-note/siyuan/kernel
修复版本
3.6.3
3.6.3
3.6.2
CVE-2026-34449是思源笔记中存在的一个远程代码执行(RCE)漏洞。攻击者可以利用宽松的CORS策略,通过API注入JavaScript代码,在用户下次打开思源笔记UI时执行,从而完全控制系统。受影响的版本包括小于等于3.6.2的版本。此漏洞已在3.6.2版本中修复。
SiYuan中的CVE-2026-34449漏洞允许在运行该软件的任何桌面计算机上执行远程代码(RCE)。这归因于过于宽松的跨域资源共享(CORS)配置,允许恶意网站通过SiYuan API注入JavaScript代码。Access-Control-Allow-Origin: *以及Access-Control-Allow-Private-Network: true设置简化了这种注入。注入代码将在SiYuan中的Electron Node.js上下文中执行,从而授予攻击者对操作系统完全访问权限。用户无需进行任何操作,只需在SiYuan运行时访问恶意网站即可。
攻击者可以创建一个恶意网站,利用SiYuan的宽松CORS配置。通过在SiYuan运行时访问此网站,攻击者可以通过API注入JavaScript代码。此代码将在Electron Node.js上下文中以提升的权限执行,使其能够访问文件、执行命令并可能控制系统。SiYuan API中缺乏身份验证或授权加剧了该漏洞。
Users of SiYuan who are running versions prior to 3.6.2 are at significant risk. This includes individuals using SiYuan for personal note-taking, as well as organizations that rely on SiYuan for collaborative knowledge management. Users who frequently visit untrusted websites or have a history of clicking on suspicious links are particularly vulnerable.
• linux / server: Monitor SiYuan's API endpoints for unusual JavaScript requests using journalctl -f -u siyuan. Look for POST requests containing suspicious JavaScript code.
• generic web: Use curl to test SiYuan's API endpoints with crafted requests containing JavaScript payloads. Examine the response headers for any signs of code execution.
• windows / supply-chain: Monitor PowerShell execution logs (Get-WinEvent -LogName Application -Filter "[System[Provider[@Name='PowerShell']]]" | Where-Object {$_.Message -like 'siyuan'})
• database (generic): Examine SiYuan's configuration files for any unusual CORS settings or API keys that could be exploited.
disclosure
patch
漏洞利用状态
EPSS
0.14% (34% 百分位)
CISA SSVC
建议的解决方案是将SiYuan更新到3.6.2或更高版本。此版本更正了限制性的CORS配置,消除了恶意代码注入的可能性。如果无法立即更新,建议不要使用时禁用SiYuan API。在SiYuan运行时,尤其是在访问未知或可疑网站时,务必小心谨慎。监控SiYuan的网络活动也有助于检测潜在的利用尝试。
Actualice SiYuan a la versión 3.6.2 o superior. Esta versión contiene una corrección para la vulnerabilidad de ejecución remota de código (RCE) a través de CORS y la inyección de JavaScript.
漏洞分析和关键警报直接发送到您的邮箱。
CORS(跨域资源共享)是一种安全机制,用于控制对不同域中的资源的访问。像Access-Control-Allow-Origin: *这样的宽松配置允许来自任何域的访问,如果管理不当,则可能很危险。
RCE意味着攻击者可以在远程系统上执行任意代码。在本例中,攻击者可以在运行SiYuan的系统上执行代码。
如果您使用的是SiYuan 3.6.2之前的版本,则很可能容易受到攻击。请检查您的SiYuan版本并尽快更新。
如果您怀疑自己已被攻击,请立即将系统从网络断开,运行完整的防病毒扫描,并考虑从受信任的来源重新安装SiYuan。
作为临时措施,您可以尝试禁用SiYuan API,如果当前未使用。但是,这可能会影响SiYuan的功能。
CVSS 向量
上传你的 go.mod 文件,立即知道是否受影响。