CVE-2026-23847 Details
Description
SiYuan is a personal knowledge management system. Versions prior to 3.5.4 are vulnerable to reflected cross-site scripting in /api/icon/getDynamicIcon due to unsanitized SVG input. The endpoint generates SVG images for text icons (type=8). The content query parameter is inserted directly into the SVG <text> tag without XML escaping. Since the response Content-Type is image/svg+xml, injecting unescaped tags allows breaking the XML structure and executing JavaScript. Version 3.5.4 patches the issue.]
A reflected cross-site scripting vulnerability has been identified in SiYuan versions prior to 3.5.4. The issue arises in the '/api/icon/getDynamicIcon' endpoint, which generates SVG images for text icons. The vulnerability is due to unsanitized SVG input, as the 'content' query parameter is inserted directly into the SVG <text> tag without proper XML escaping. This flaw allows the injection of unescaped tags, disrupting the XML structure and enabling the execution of JavaScript. The vulnerability is particularly concerning because the response is served with an 'image/svg+xml' content type, which can be exploited to execute scripts in the context of the user's session.
Users can update to SiYuan version 3.5.4, which addresses this vulnerability by sanitizing SVG inputs and removing scripts from SVG files before they are served.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/siyuan-note/siyuan/commit/5c0cc375b47567e15edd2119066b09bb0aa18777 | [email protected] | Patch |
| https://github.com/siyuan-note/siyuan/issues/16844 | [email protected] | Issue TrackingPatch |
| https://github.com/siyuan-note/siyuan/security/advisories/GHSA-w836-5gpm-7r93 | [email protected] | ExploitPatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| b3log siyuan | < 3.5.4 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 30, 2026 | Initial Analysis | [email protected] |
| Jan 19, 2026 | New CVE Received | [email protected] |