CVE-2026-73047 siyuan before v3.7.4 Server-Side Template Injection via attribute-view
A local attacker can inject templates to read environment variables and perform DNS lookups via the attribute-view feature.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-73047?
CVE-2026-73047 is a high-severity code injection vulnerability in siyuan-note siyuan, published on 15 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-200
Which versions are affected by CVE-2026-73047?
How do I fix CVE-2026-73047?
No fix has been published for CVE-2026-73047 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-73047 being exploited?
There is no known exploitation of CVE-2026-73047 in the wild and no public exploit code.
Sources
Also known as GHSA-qgh7-j4r2-h63j, GHSA-v97v-gxxg-rhmq.