GitHub Advisory Database
GHSA-4pjc-pwgq-q9jp
SiYuan has an SSTI via /api/template/renderSprig
Details
Summary
Siyuan's /api/template/renderSprig endpoint is vulnerable to Server-Side Template Injection (SSTI) through the Sprig template engine. Although the engine has limitations, it allows attackers to access environment variables
Impact
Information leakage
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/siyuan-note/siyuan/kernel | All versions up to and including 0.0.0-20241210012039-5129ad926a21 |