← Vulnerability feed

Vulnerability record · CVE-2026-40107 · published 9 April 2026

CVE-2026-40107: B3log siyuan server-side request forgery (ssrf) vulnerability

B3log · Siyuan

SiYuan is a personal knowledge management system. Prior to 3.6.4, SiYuan configures Mermaid.js with securityLevel: "loose" and htmlLabels: true. In this mode, <img> tags with src attributes survive Mermaid's internal DOMPurify and land in SVG <foreignObject> blocks. The SVG is injected via innerHTML with no secondary sanitization. When a victim opens a note containing a malicious Mermaid diagram, the Electron client fetches the URL. On Windows, a protocol-relative URL (//attacker.com/image.png) resolves as a UNC path (\\attacker.com\image.png). Windows attempts SMB authentication automatically, sending the victim's NTLMv2 hash to the attacker. This vulnerability is fixed in 3.6.4.

8.7 CVSS 4.0 High EPSS 0.45% · top 63.3% CWE-918 · Server-side request forgery (SSRF)
8.7CVSS 4.0 base score
0.45%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
1References, 1 tagged exploit
17 Jun 2026Last modified by NVD

Description

SiYuan is a personal knowledge management system. Prior to 3.6.4, SiYuan configures Mermaid.js with securityLevel: "loose" and htmlLabels: true. In this mode, <img> tags with src attributes survive Mermaid's internal DOMPurify and land in SVG <foreignObject> blocks. The SVG is injected via innerHTML with no secondary sanitization. When a victim opens a note containing a malicious Mermaid diagram, the Electron client fetches the URL. On Windows, a protocol-relative URL (//attacker.com/image.png) resolves as a UNC path (\\attacker.com\image.png). Windows attempts SMB authentication automatically, sending the victim's NTLMv2 hash to the attacker. This vulnerability is fixed in 3.6.4.

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2026-40107 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2026-32767B3log siyuan sql injection vulnerabilitySiYuan is a personal knowledge management system. Versions 3.6.0 and below contain an authorization bypass vulnerability in the /api/search/fullTextS…EPSS 0.70%9.8CVE-2026-30869B3log siyuan path traversal vulnerabilitySiYuan is a personal knowledge management system. Prior to 3.5.10, a path traversal vulnerability in the /export endpoint allows an attacker to read …EPSS 1.1%9.8CVE-2024-53507B3log siyuan sql injection vulnerabilityA SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems.EPSS 0.57%9.8CVE-2024-53504B3log siyuan sql injection vulnerabilityA SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory.EPSS 0.57%9.8CVE-2024-53505B3log siyuan sql injection vulnerabilityA SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent.EPSS 0.51%9.8CVE-2024-53506B3log siyuan sql injection vulnerabilityA SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs.EPSS 0.54%9.6CVE-2026-34449B3log siyuan vulnerabilitySiYuan is a personal knowledge management system. Prior to version 3.6.2, a malicious website can achieve Remote Code Execution (RCE) on any desktop …EPSS 0.80%9.1CVE-2026-32749B3log siyuan path traversal vulnerabilitySiYuan is a personal knowledge management system. In versions 3.6.0 and below, POST /api/import/importSY and POST /api/import/importZipMd write uploa…EPSS 0.57%

Source: NIST National Vulnerability Database (record CVE-2026-40107), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.