Skip to content
HighVulnerability

GHSA-x8gv-g2g3-65fj: SiYuan Agent Tools SSRF via DNS-Rebinding TOCTOU (Bypass of CheckHostSSRF)

Published
Record updated
View JSON
Affected
  • github.com/siyuan-note/siyuan/kernel < 0.0.0-20260813142806-dd2778b70d02
Fixed in
0.0.0-20260813142806-dd2778b70d02
  • released August 13, 2026, 50 days before disclosure

Summary

SiYuan's AI Agent tools `http_request` (`util.HTTPRequest`) and `web_fetch` (`util.WebFetch`) check outbound hosts with `CheckHostSSRF`, which resolves DNS once at guard time, while the actual connection resolves DNS again through the default `net.Dialer` with no connect-time private-IP check. An attacker-controlled domain can return a public IP to the guard and a private or metadata address such as `169.254.169.254` to the connection, bypassing the SSRF defense. Affected versions are `<= 3.8.0`, verified on v3.8.0, and the flaw is an incomplete-fix variant of GHSA-rg26-cg95-gq6p.

Mitigation

Fixed in 3.8.1