Sceawere

Vulnerability Detail

CVE-2026-73041UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV

SiYuan PDF Annotation RCE

Vulnerability Metadata

Severity
Critical
Score / CVSS
9
Creation Date
2h ago
Vendor
siyuan-note
Product
siyuan
Attack Type
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Vector String
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
Attack Complexity
LOW

Narrative and Response

Description

SiYuan versions before v3.7.4 fail to validate or escape annotation fields written to disk by the setFileAnnotation endpoint. Attackers can inject malicious markup into annotation fields that execute as script in the PDF renderer with full Node.js access when a user opens an annotated PDF.

Executive Summary

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Executive Summary Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Technical Details

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Detailed Technical Analysis Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Mitigations

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Remediation & Mitigations Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

References

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Intelligence References Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Additional Metadata

{
  "score": "9.0",
  "pubDate": "2026-08-15T22:16:53.883Z",
  "pubdate": "2026-08-15T22:16:53.883Z",
  "executiveSummary": "SiYuan versions prior to v3.7.4 contain an input validation and sanitization vulnerability within the setFileAnnotation endpoint. The flaw enables attackers to inject malicious markup payloads into annotation fields stored directly to disk. When a user subsequently opens a locally modified or maliciously crafted PDF document, the embedded payload is parsed and executed within the context of the integrated PDF renderer. This vulnerability poses severe risk implications, as execution occurs with full Node.js environment privileges. Consequently, a successful exploit grants an attacker arbitrary code execution capabilities on the host operating system under the security context of the running application instance. Exploitation requires the target user to open an annotated PDF containing the malicious markup injected via the vulnerable endpoint.",
  "technicalDetails": "The root cause of the vulnerability stems from insufficient input validation and a lack of proper output escaping within the setFileAnnotation endpoint of SiYuan. When processing file annotations, the application fails to sanitize strings designated for storage in annotation fields written to disk. As a result, arbitrary markup containing executable script structures can be injected directly into the persisted annotation metadata without prior filtration.\nThe vulnerable component is the internal PDF renderer mechanism responsible for interpreting and displaying annotation objects. Affected versions include all iterations of SiYuan prior to v3.7.4. The attack vector involves writing malicious payloads via the setFileAnnotation function, which persists the input onto the underlying filesystem. When a user triggers the rendering of the annotated PDF document, the rendering engine processes the unescaped annotation fields.\nThe step-by-step attack flow proceeds as follows: First, an attacker leverages the setFileAnnotation endpoint to write malicious markup containing script payloads into the target document's annotation parameters. Second, the crafted annotations are serialized and saved to disk. Third, the victim user opens the affected PDF within the SiYuan application. Fourth, the PDF renderer parses the stored annotation fields, inadvertently evaluating the injected markup. Finally, because the rendering context is improperly isolated and operates with full Node.js access, the payload executes arbitrary JavaScript capable of interacting with system modules, leading to complete compromise of the local environment."
}
CVE-2026-73041: SiYuan PDF Annotation RCE (CRITICAL Severity, CVSS: 9.0) - Sceawere