Local environment disclosure via unrestricted template functions
Published Aug 15, 2026 · Updated Aug 15, 2026
Server-side template injection in SiYuan 3.7.0-beta.1 through 3.7.3 allows local users to read process environment variables. kernel/av/calc_template.go builds attribute-view Template calculations with Sprig's full TxtFuncMap, leaving env, expandenv, and getHostByName callable. Any local OS account can access the unauthenticated loopback kernel, expose the SiYuan process's environment, and initiate DNS lookups from its network position.
Summary
What happened
Server-side template injection in SiYuan 3.7.0-beta.1 through 3.7.3 allows local users to read process environment variables. kernel/av/calc_template.go builds attribute-view Template calculations with Sprig's full TxtFuncMap, leaving env, expandenv, and getHostByName callable. Any local OS account can access the unauthenticated loopback kernel, expose the SiYuan process's environment, and initiate DNS lookups from its network position.
The record
- CVE
- CVE-2026-73047
- Published
- Aug 15, 2026
- Updated
- Aug 15, 2026
- Vendor
- SiYuan Note
- Product
- SiYuan
- Classifications
- CWE-1336, CWE-918, CWE-200, T1552
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 15, 2026CVE publishedPublication date reported by the CVE source.
- Aug 15, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <3.7.4
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA-v97v-gxxg-rhmq local proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo