PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-32704 siyuan-note CVE debrief

CVE-2026-32704 debrief based on the supplied source corpus. The CVE record was published on 2026-03-13T20:56:47.000Z and has not been modified since then. The vulnerability in SiYuan's renderSprig function allows any authenticated user to execute arbitrary SQL queries against the workspace database, potentially leading to the exfiltration of note content, metadata, and custom attributes. SiYuan administrators and users should verify their exposure and apply the patch to mitigate the vulnerability.

Vendor
siyuan-note
Product
github.com/siyuan-note/siyuan/kernel
CVSS
MEDIUM 6.5
CISA KEV
Not listed in stored evidence
Original CVE published
2026-03-13
Original CVE updated
2026-11-05
Advisory published
2026-03-13
Advisory updated
2026-11-05

Who should care

SiYuan administrators and users should be aware of this vulnerability, as it allows any authenticated user to read the full workspace database, including note content, metadata, and custom attributes.

Why it matters

CVE-2026-32704 is a vulnerability in SiYuan's renderSprig function that allows any authenticated user to execute arbitrary SQL queries against the workspace database. SiYuan administrators and users should verify their exposure and apply the patch to mitigate the vulnerability.

  • Authenticated users can execute arbitrary SQL queries against the workspace database
  • Exfiltration of note content, metadata, and custom attributes is possible
  • Verification of SiYuan version and configuration is necessary to determine exposure
  • Patch application is required to mitigate the vulnerability

Technical summary

The renderSprig function in SiYuan lacks an admin check, allowing any authenticated user to execute arbitrary SQL queries against the workspace database. This is due to the missing model.CheckAdminRole in the ginServer.Handle for the /api/template/renderSprig endpoint. The function calls model.RenderGoTemplate, which registers SQL functions from kernel/sql/database.go, enabling the execution of raw SELECT queries without role checks. Any authenticated user, including Publish Service Reader role accounts, can call this endpoint and execute arbitrary SELECT queries.

Defensive priority

SiYuan administrators and users should prioritize verifying their exposure and applying the patch, as any authenticated user can execute arbitrary SQL queries against the workspace database.

Recommended defensive actions

  • Verify exposure by checking SiYuan version and configuration
  • Apply the patch to update to version 3.6.1 or later
  • Restrict access to the renderSprig endpoint to admin roles
  • Monitor for suspicious SQL queries on the workspace database
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented

Evidence notes

The source corpus provides details on the vulnerability in SiYuan's renderSprig function, which lacks an admin check, allowing any authenticated user to execute arbitrary SQL queries. The CVE record and NVD entry provide additional context.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-32704 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-32704

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-32704 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-32704

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.