# CVE-2024-55660: SiYuan has an SSTI via /api/template/renderSprig

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 51% of CVEs (2026-12-01)
- Published: 2024-12-11T18:44:47.000Z
- Modified: 2026-06-17T08:11:21.747Z
- Also known as: GHSA-4pjc-pwgq-q9jp, GO-2024-3324
- Weaknesses: CWE-94, CWE-1336
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

SiYuan is a personal knowledge management system. Prior to version 3.1.16, 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. Version 3.1.16 contains a patch for the issue.

(As written by CVE List.)

## Affected

- siyuan-note siyuan: < 3.1.16
- github.com/siyuan-note/siyuan/kernel (Go): up to 0.0.0-20241210012039-5129ad926a21; all versions
- b3log siyuan: 3.1.15

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4pjc-pwgq-q9jp> (advisory, vendor-advisory, web)
- <https://github.com/siyuan-note/siyuan/commit/e70ed57f6e4852e2bd702671aeb8eb3a47a36d71> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-55660> (advisory)
- <https://github.com/siyuan-note/siyuan> (package)
- <https://pkg.go.dev/vuln/GO-2024-3324> (web)

## Sources

- CVE List: [CVE-2024-55660](https://www.cve.org/CVERecord?id=CVE-2024-55660), CVE Terms of Use, modified 2024-12-12
- GitHub Advisory Database: [GHSA-4pjc-pwgq-q9jp](https://github.com/advisories/GHSA-4pjc-pwgq-q9jp), CC-BY-4.0, modified 2024-12-12
- Go Vulnerability Database: [GO-2024-3324](https://pkg.go.dev/vuln/GO-2024-3324), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-55660](https://nvd.nist.gov/vuln/detail/CVE-2024-55660), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-55660 · Whole record: https://cve.day/CVE-2024-55660.json · Rebuilt by cve.day 2026-11-25T22:58:50.024Z
