CVE-2026-23847: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siyuan-note siyuan
CVE-2026-23847 is a reflected cross-site scripting (XSS) vulnerability in SiYuan, a personal knowledge management system, affecting versions prior to 3. 5. 4. The flaw exists in the /api/icon/getDynamicIcon endpoint, which generates SVG images for text icons by inserting user-supplied content directly into an SVG <text> tag without proper XML escaping. Because the response is served with the image/svg+xml content type, attackers can inject malicious JavaScript by breaking the XML structure, leading to script execution in the victim's browser. The vulnerability requires no authentication but does require user interaction to trigger the malicious payload. The CVSS 4. 0 score is low (2. 1), reflecting limited impact and ease of exploitation. The issue was patched in version 3.
AI Analysis
Technical Summary
CVE-2026-23847 is a reflected cross-site scripting vulnerability classified under CWE-79, found in the SiYuan personal knowledge management system prior to version 3.5.4. The vulnerability arises from improper neutralization of input during web page generation in the /api/icon/getDynamicIcon endpoint. This endpoint generates SVG images for text icons, specifically when the 'type=8' parameter is used. The 'content' query parameter is directly embedded into the SVG <text> element without XML escaping or sanitization. Since the HTTP response Content-Type is set to image/svg+xml, the injected content can break the XML structure and allow execution of arbitrary JavaScript code within the context of the user's browser. This reflected XSS does not require authentication, making it accessible to unauthenticated attackers who can craft malicious URLs. However, user interaction is necessary to trigger the payload, such as clicking a malicious link or visiting a compromised webpage that references the vulnerable endpoint. The vulnerability was assigned a CVSS 4.0 score of 2.1, indicating low severity due to limited impact on confidentiality, integrity, and availability, and the requirement for user interaction. No known exploits have been reported in the wild, and the issue was resolved in SiYuan version 3.5.4 by properly escaping the 'content' parameter before embedding it in the SVG output. This vulnerability could be leveraged for session hijacking, phishing, or other client-side attacks if exploited in targeted scenarios.
Potential Impact
For European organizations, the impact of CVE-2026-23847 is generally low but non-negligible. Successful exploitation could allow attackers to execute arbitrary JavaScript in the context of a user's browser, potentially leading to session hijacking, theft of sensitive information, or delivery of further malware. Organizations using SiYuan for knowledge management, especially those exposing the vulnerable endpoint to the internet or integrating it into internal portals, face increased risk. The vulnerability could be exploited in spear-phishing campaigns targeting employees, enabling attackers to bypass same-origin policies and perform actions on behalf of users. While the direct impact on system confidentiality, integrity, and availability is limited, the client-side compromise could facilitate broader attacks. Given the low CVSS score and lack of known exploits, the immediate risk is moderate, but organizations should not ignore the vulnerability due to the potential for targeted abuse. Compliance with data protection regulations such as GDPR also necessitates timely patching of known vulnerabilities to avoid penalties.
Mitigation Recommendations
European organizations should immediately upgrade all SiYuan deployments to version 3.5.4 or later, where the vulnerability is patched. If upgrading is not immediately feasible, implement strict input validation and sanitization on the 'content' parameter at the web application firewall (WAF) or reverse proxy level to block malicious payloads attempting to inject SVG or script tags. Employ Content Security Policy (CSP) headers to restrict the execution of inline scripts and limit the sources of executable code, mitigating the impact of any successful XSS attempts. Monitor web server logs for suspicious requests to /api/icon/getDynamicIcon with unusual or encoded payloads. Educate users about the risks of clicking untrusted links, especially those that may contain SVG content. Conduct regular security assessments and penetration testing focusing on client-side vulnerabilities. Finally, isolate SiYuan instances from public internet exposure where possible, restricting access to trusted internal networks.
Affected Countries
Germany, France, United Kingdom, Netherlands, Sweden
CVE-2026-23847: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siyuan-note siyuan
Description
CVE-2026-23847 is a reflected cross-site scripting (XSS) vulnerability in SiYuan, a personal knowledge management system, affecting versions prior to 3. 5. 4. The flaw exists in the /api/icon/getDynamicIcon endpoint, which generates SVG images for text icons by inserting user-supplied content directly into an SVG <text> tag without proper XML escaping. Because the response is served with the image/svg+xml content type, attackers can inject malicious JavaScript by breaking the XML structure, leading to script execution in the victim's browser. The vulnerability requires no authentication but does require user interaction to trigger the malicious payload. The CVSS 4. 0 score is low (2. 1), reflecting limited impact and ease of exploitation. The issue was patched in version 3.
AI-Powered Analysis
Technical Analysis
CVE-2026-23847 is a reflected cross-site scripting vulnerability classified under CWE-79, found in the SiYuan personal knowledge management system prior to version 3.5.4. The vulnerability arises from improper neutralization of input during web page generation in the /api/icon/getDynamicIcon endpoint. This endpoint generates SVG images for text icons, specifically when the 'type=8' parameter is used. The 'content' query parameter is directly embedded into the SVG <text> element without XML escaping or sanitization. Since the HTTP response Content-Type is set to image/svg+xml, the injected content can break the XML structure and allow execution of arbitrary JavaScript code within the context of the user's browser. This reflected XSS does not require authentication, making it accessible to unauthenticated attackers who can craft malicious URLs. However, user interaction is necessary to trigger the payload, such as clicking a malicious link or visiting a compromised webpage that references the vulnerable endpoint. The vulnerability was assigned a CVSS 4.0 score of 2.1, indicating low severity due to limited impact on confidentiality, integrity, and availability, and the requirement for user interaction. No known exploits have been reported in the wild, and the issue was resolved in SiYuan version 3.5.4 by properly escaping the 'content' parameter before embedding it in the SVG output. This vulnerability could be leveraged for session hijacking, phishing, or other client-side attacks if exploited in targeted scenarios.
Potential Impact
For European organizations, the impact of CVE-2026-23847 is generally low but non-negligible. Successful exploitation could allow attackers to execute arbitrary JavaScript in the context of a user's browser, potentially leading to session hijacking, theft of sensitive information, or delivery of further malware. Organizations using SiYuan for knowledge management, especially those exposing the vulnerable endpoint to the internet or integrating it into internal portals, face increased risk. The vulnerability could be exploited in spear-phishing campaigns targeting employees, enabling attackers to bypass same-origin policies and perform actions on behalf of users. While the direct impact on system confidentiality, integrity, and availability is limited, the client-side compromise could facilitate broader attacks. Given the low CVSS score and lack of known exploits, the immediate risk is moderate, but organizations should not ignore the vulnerability due to the potential for targeted abuse. Compliance with data protection regulations such as GDPR also necessitates timely patching of known vulnerabilities to avoid penalties.
Mitigation Recommendations
European organizations should immediately upgrade all SiYuan deployments to version 3.5.4 or later, where the vulnerability is patched. If upgrading is not immediately feasible, implement strict input validation and sanitization on the 'content' parameter at the web application firewall (WAF) or reverse proxy level to block malicious payloads attempting to inject SVG or script tags. Employ Content Security Policy (CSP) headers to restrict the execution of inline scripts and limit the sources of executable code, mitigating the impact of any successful XSS attempts. Monitor web server logs for suspicious requests to /api/icon/getDynamicIcon with unusual or encoded payloads. Educate users about the risks of clicking untrusted links, especially those that may contain SVG content. Conduct regular security assessments and penetration testing focusing on client-side vulnerabilities. Finally, isolate SiYuan instances from public internet exposure where possible, restricting access to trusted internal networks.
Affected Countries
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-01-16T15:46:40.843Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 696e8b204623b1157cb6228a
Added to database: 1/19/2026, 7:50:56 PM
Last enriched: 1/26/2026, 8:12:08 PM
Last updated: 2/6/2026, 10:41:50 PM
Views: 49
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2026-2069: Stack-based Buffer Overflow in ggml-org llama.cpp
MediumCVE-2026-25764: CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in opf openproject
LowCVE-2026-25763: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in opf openproject
CriticalCVE-2026-2068: Buffer Overflow in UTT 进取 520W
HighCVE-2026-25760: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in BishopFox sliver
MediumActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.