Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/siyuan-note/siyuan/kernel
  4. ›
  5. GHSA-x8gv-g2g3-65fj

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

October 2, 2026

SiYuan’s AI Agent tools http_request (util.HTTPRequest) and web_fetch (util.WebFetch) are the only SSRF gate for outbound requests from the kernel. That gate is CheckHostSSRF, which performs a single DNS resolution at guard time and checks whether any returned IP is private/loopback/link-local. The actual connection, however, performs a second, independent DNS resolution through the default net.Dialer — and no connect-time private-IP check is mounted on this path.

Because the two resolutions are not pinned to the same result, an attacker-controlled domain can answer the guard-resolution with a public IP (passing CheckHostSSRF) and the connect-resolution with a private/loopback/metadata IP (e.g. 169.254.169.254). This is a classic DNS-rebinding TOCTOU that bypasses the SSRF defense entirely. It reaches cloud instance metadata and internal services that the guard was specifically added to block.

References

  • github.com/advisories/GHSA-x8gv-g2g3-65fj
  • github.com/siyuan-note/siyuan/commit/dd2778b70d020b15491ef7418f5f63214583cd63
  • github.com/siyuan-note/siyuan/releases/tag/v3.8.1
  • github.com/siyuan-note/siyuan/security/advisories/GHSA-x8gv-g2g3-65fj

Code Behaviors & Features

Detect and mitigate GHSA-x8gv-g2g3-65fj with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.0-20260813142806-dd2778b70d02

Fixed versions

  • 0.0.0-20260813142806-dd2778b70d02

Solution

Upgrade to version 0.0.0-20260813142806-dd2778b70d02 or above.

Impact 8.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

go/github.com/siyuan-note/siyuan/kernel/GHSA-x8gv-g2g3-65fj.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 12 Oct 2026 00:23:53 +0000.