# CVE-2026-109310: SiYuan resource exhaustion in getDynamicIcon template

Source: https://junglewise.ai/threats/cve-2026-109310-siyuan-v3-1-12-before-v3-8-6-fails-to-restrict-the-sprig  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-12. Updated: 2026-10-16  
License: CC BY 4.0 with a link back

CVE-2026-109310 · Severity: medium · CVSS 6.5 · Published 2026-10-12

SiYuan is a note-taking and knowledge management application that supports publishing workspaces to the internet. The /api/icon/getDynamicIcon endpoint allows publish readers to supply template code that is processed using the Sprig template function library without proper restrictions. An attacker can invoke unbounded functions like until() to allocate arbitrary amounts of memory in a single request, exhausting the server and crashing the kernel, taking down both the published site and the owner's workspace.

Technologies: [SiYuan](https://junglewise.ai/threats/technologies/siyuan). Vendors: [SiYuan](https://junglewise.ai/threats/vendors/siyuan).

## Quick answers

**Is CVE-2026-109310 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-109310 being exploited in the wild.

**How severe is CVE-2026-109310?** Medium severity, with a CVSS score of 6.5, published 12 October 2026.

**Which products and versions are affected?** SiYuan v3.1.12 before v3.8.6.

**Is there a fix for CVE-2026-109310?** Yes: fixed in v3.8.6. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-109310 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-109310?** Check whether you run SiYuan at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in v3.8.6

## Technical details

The /api/icon/getDynamicIcon endpoint parses the content query parameter as a Go text/template using Sprig's TxtFuncMap with only three functions removed (env, expandenv, getHostByName). The uncapped until(n) function allocates memory without bounds—a single request can exhaust gigabytes of RAM. Attack requires only publish reader credentials (or none if publish auth is disabled), and allocation scales linearly with the integer parameter chosen by the caller.

## Affected products

- SiYuan SiYuan v3.1.12 before v3.8.6

## Timeline

- 2026-09-24: disclosed
- 2026-10-12: advisory

## References

- [https://github.com/siyuan-note/siyuan/security/advisories/GHSA-cxwr-r7cq-xw52](https://github.com/siyuan-note/siyuan/security/advisories/GHSA-cxwr-r7cq-xw52)
- [https://www.vulncheck.com/advisories/siyuan-3.1.12-before-3.8.6-denial-of-service-via-getdynamicicon-template](https://www.vulncheck.com/advisories/siyuan-3.1.12-before-3.8.6-denial-of-service-via-getdynamicicon-template)

## Related threats

- [SiYuan path traversal in web fetch](https://junglewise.ai/threats/cve-2026-126776-siyuan-3-7-0-before-3-8-10-on-windows-contains-a-path-traversal)
- [SiYuan publish filter information disclosure in local storage](https://junglewise.ai/threats/go-2026-6836-siyuan-the-publish-filter-for-local-storage-returns-the-7f022e62)
- [SiYuan path traversal via GLOBALROOT alias bypass](https://junglewise.ai/threats/cve-2026-118680-siyuan-3-8-7-through-3-8-8-fails-to-normalize-windows-globalroot)
- [SiYuan SQL injection in history search](https://junglewise.ai/threats/cve-2026-116170-siyuan-before-v3-8-7-contains-an-sql-injection-vulnerability)
- [SiYuan cross-site scripting in /check-auth redirect](https://junglewise.ai/threats/cve-2026-116167-siyuan-from-2-9-0-before-3-8-7-contains-a-cross-site-scripting)
