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.
Published: 2026-08-15
Score: 9.4 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A flaw in SiYuan prior to version 3.7.4 allows attackers to inject arbitrary markup into PDF annotation fields. When a user opens an annotated PDF, the embedded script executes inside the PDF renderer with full Node.js privileges, permitting full control over the host system. The vulnerability is a classic example of unsanitized input leading to browser‑style script execution, classified as CWE‑79.

Affected Systems

The issue affects the SiYuan note-taking application. Any installation of the product with a version earlier than 3.7.4 is vulnerable. The vulnerability is triggered via the setFileAnnotation API endpoint, which writes annotation data directly to disk without validation or escaping.

Risk and Exploitability

The CVSS score of 9.4 indicates a critical severity. No EPSS information is presently available, so the likelihood of exploitation is unknown, and the vulnerability is not listed in CISA’s KEV catalog. The attack vector is inferred to be remote, requiring an attacker to deliver a malicious PDF to a user with the application installed. If opened, the PDF renderer will run the injected script with full Node.js access, providing remote attackers with the ability to execute arbitrary code on the victim’s machine.

Generated by OpenCVE AI on August 15, 2026 at 23:25 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SiYuan to version 3.7.4 or later, which includes proper validation and escaping of annotation fields.
  • If upgrade is not immediately possible, refuse or sanitize annotation data from untrusted sources before storing it.
  • Configure the PDF viewer to disallow or sandbox script execution within PDF files, or use an external viewer that disables embedded scripts.

Generated by OpenCVE AI on August 15, 2026 at 23:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 17 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 17 Aug 2026 10:45:00 +0000

Type Values Removed Values Added
First Time appeared Siyuan
Siyuan siyuan
Vendors & Products Siyuan
Siyuan siyuan

Sat, 15 Aug 2026 22:00:00 +0000

Type Values Removed Values Added
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.
Title SiYuan before v3.7.4 Remote Code Execution via PDF Annotations
First Time appeared B3log
B3log siyuan
Weaknesses CWE-79
CPEs cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*
Vendors & Products B3log
B3log siyuan
References
Metrics cvssV3_1

{'score': 9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.4, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-17T17:36:44.058Z

Reserved: 2026-08-10T19:06:03.365Z

Link: CVE-2026-73041

cve-icon Vulnrichment

Updated: 2026-08-17T17:36:32.983Z

cve-icon NVD

Status : Deferred

Published: 2026-08-15T22:16:53.883

Modified: 2026-08-26T17:05:08.273

Link: CVE-2026-73041

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-17T10:30:08Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')