github.com/siyuan-note/siyuan/kernel · Kernel: SiYuan Agent Tools SSRF via DNS-Rebinding TOCTOU (Bypass of CheckHostSSRF)
Affects github.com/siyuan-note/siyuan/kernelSource GCVE Database
CVSS 8.2 High : upgrade to 0.0.0-20260813142806-dd2778b70d02 soon.
Data as of 3 Oct 2026, 17:38 UTC
- Patch
- Available – fixed in 0.0.0-20260813142806-dd2778b70d02
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:NWhat to do
Upgrade github.com/siyuan-note/siyuan/kernel to 0.0.0-20260813142806-dd2778b70d02.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gogithub.com/siyuan-note/siyuan/kernel | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in SiYuan version 3.8.1 that fixes this vulnerability by properly enforcing connect-time IP checks. Users should upgrade to version 3.8.1 or later. No additional mitigations are required if the patch is applied. Until patched, restricting access to the AI Agent tools or limiting attacker control over URLs may reduce risk but is not a complete mitigation.
Description
SiYuan Agent Tools versions up to 3.8.0 contain a Server-Side Request Forgery (SSRF) vulnerability due to a DNS rebinding time-of-check to time-of-use (TOCTOU) flaw. The vulnerability arises because the SSRF protection performs a single DNS resolution at guard time but does not verify the IP address at connection time, allowing an attacker-controlled domain to bypass the check by returning a public IP initially and a private or loopback IP on connection. This enables access to internal services such as cloud instance metadata. The issue affects the AI Agent tools' http_request and web_fetch components and was patched in version 3.8.1.
References
- github.com/siyuan-note/siyuan/security/advisories/GHSA-x8gv-g2g3-65fj (opens in a new tab)
- github.com/siyuan-note/siyuan/commit/dd2778b70d020b15491ef7418f5f63214583cd63 (opens in a new tab)
- github.com/siyuan-note/siyuan (opens in a new tab)
- github.com/siyuan-note/siyuan/releases/tag/v3.8.1 (opens in a new tab)