CVE-2026-73047

siyuan before v3.7.4 Server-Side Template Injection via attribute-view

Published Aug 15, 2026 CVSS 4.0 · 8.6 High EPSS < 1% KEV · Not listed
Description
siyuan versions <= 3.7.3 (fixed in v3.7.4) contain a server-side template injection vulnerability in the attribute-view Template calculation feature (introduced in v3.7.0-beta.1). The feature's template engine uses Sprig's unmodified function map, which still exposes the env, expandenv, and getHostByName functions that were removed elsewhere for CVE-2024-55660. A local, unauthenticated attacker (the kernel binds to 127.0.0.1 by default with no per-UID access control) can inject a malicious Template calculation formula to read environment variables belonging to the account running siyuan — including from a separate, unprivileged OS account — and to perform DNS lookups from the server's network position.

Analysis

AI-generated

Technical impact

The vulnerability is a server‐side template injection in the attribute‑view template calculation feature of Siyuan up to version 3.7.3. It allows a local, unauthenticated user to supply a malicious template that is evaluated by Sprig’s default function map, exposing functions such as env, expandenv, and getHostByName. By exploiting this flaw, the attacker can read environment variables from the Siyuan process account, potentially including sensitive data from other unprivileged OS accounts, and can trigger DNS queries from the server’s network location.

Affected Systems

Affected products are Siyuan 3.7.3 and earlier. Versions from 3.7.0‑beta.1 up to but not including 3.7.4 are vulnerable; the issue was resolved in 3.7.4. Systems running these releases on a host that exposes the Siyuan server to local users or to any network interface are at risk.

Risk and Exploitability

The CVSS score of 8.6 indicates high severity, and the vulnerability is not currently listed in CISA’s KEV catalog. Without an EPSS score, the probability of exploitation cannot be quantified, but the flaw requires local, unauthenticated access to the host and exploits a feature that is bound to 127.0.0.1 by default. An attacker with local machine access could extract configuration data and perform covert network queries from the server, potentially aiding further attacks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor bundle update to version 3.7.4 or later
  • Configure the Siyuan service to bind exclusively to 127.0.0.1 and disable any unintended external interfaces
  • Ensure that the operating system account running Siyuan has minimal privileges and that other local users cannot read its environment or process data
  • If an upgrade is not immediately possible, isolate the server on a dedicated VM or container and restrict local access to trusted administrators only

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Siyuan
Siyuan siyuan
Vendors & Products Siyuan
Siyuan siyuan
Type Values Removed Values Added
Description siyuan versions <= 3.7.3 (fixed in v3.7.4) contain a server-side template injection vulnerability in the attribute-view Template calculation feature (introduced in v3.7.0-beta.1). The feature's template engine uses Sprig's unmodified function map, which still exposes the env, expandenv, and getHostByName functions that were removed elsewhere for CVE-2024-55660. A local, unauthenticated attacker (the kernel binds to 127.0.0.1 by default with no per-UID access control) can inject a malicious Template calculation formula to read environment variables belonging to the account running siyuan — including from a separate, unprivileged OS account — and to perform DNS lookups from the server's network position.
Title siyuan before v3.7.4 Server-Side Template Injection via attribute-view
First Time appeared B3log
B3log siyuan
Weaknesses CWE-200
CPEs cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*
Vendors & Products B3log
B3log siyuan
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 17, 2026, 4:06 PM
Reserved
Aug 10, 2026, 7:06 PM
Status
Deferred
Published
Aug 15, 2026, 10:16 PM
Modified
Aug 26, 2026, 4:57 PM