Description
SiYuan before v3.7.4 contains a server-side request forgery (SSRF) vulnerability in the isPrivateIP function in kernel/util/net.go, used by SSRFSafeDialer to enforce SSRF protection in SafeMode. The function only checks for loopback, link-local unicast, private, and unspecified addresses and does not recognize IPv6 transition addresses (NAT64 64:ff9b::/96, 6to4 2002::/16, Teredo 2001::/32) that embed private IPv4 destinations. When SafeMode is enabled, an authenticated attacker can bypass the SSRF guard via the network forward proxy, WebSocket proxy, or SSE proxy endpoints by supplying a URL whose hostname resolves to such a transition address, reaching internal services and cloud metadata endpoints (e.g., 169.254.169.254). Because the forward proxy returns the full response body, this is a full-read SSRF that can be used to steal instance credentials, reach internal services, and port-scan internal infrastructure.
Published: 2026-08-18
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability in SiYuan allows an authenticated attacker to make the server request arbitrary URLs through the built‑in network forward proxy, WebSocket proxy, or SSE proxy. The isPrivateIP check fails to block IPv6 transition addresses that map to private IPv4 destinations, enabling the attacker to target internal services and cloud metadata endpoints. This results in a full‑read SSRF that can expose credentials, internal network topology, and arbitrary service data.

Affected Systems

SiYuan before version 3.7.4, as identified by the vendor "siyuan-note". Only devices running an affected version with SafeMode enabled are vulnerable.

Risk and Exploitability

The CVSS score of 6.9 indicates a medium‑to‑high severity. With SafeMode enabled, an attacker controls input via proxy endpoints, making exploitation straightforward once authenticated. No EPSS data is available, but the lack of a KEV listing does not preclude real‑world exploitation. The attack vector is internally scoped; success depends on network configuration and the attacker’s ability to access the proxy endpoints.

Generated by OpenCVE AI on August 18, 2026 at 12:52 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to SiYuan v3.7.4 or later
  • If a patch is not yet available, disable SafeMode to block the SSRF guard from being bypassed
  • Restrict proxy endpoints to only accept whitelisted IP ranges and block internal network addresses
  • Monitor proxy logs for unexpected or unauthorized URL requests

Generated by OpenCVE AI on August 18, 2026 at 12:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 18 Aug 2026 11:30:00 +0000

Type Values Removed Values Added
Description SiYuan before v3.7.4 contains a server-side request forgery (SSRF) vulnerability in the isPrivateIP function in kernel/util/net.go, used by SSRFSafeDialer to enforce SSRF protection in SafeMode. The function only checks for loopback, link-local unicast, private, and unspecified addresses and does not recognize IPv6 transition addresses (NAT64 64:ff9b::/96, 6to4 2002::/16, Teredo 2001::/32) that embed private IPv4 destinations. When SafeMode is enabled, an authenticated attacker can bypass the SSRF guard via the network forward proxy, WebSocket proxy, or SSE proxy endpoints by supplying a URL whose hostname resolves to such a transition address, reaching internal services and cloud metadata endpoints (e.g., 169.254.169.254). Because the forward proxy returns the full response body, this is a full-read SSRF that can be used to steal instance credentials, reach internal services, and port-scan internal infrastructure.
Title SiYuan before v3.7.4 SSRF via IPv6 Transition Address Bypass
First Time appeared B3log
B3log siyuan
Weaknesses CWE-918
CPEs cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*
Vendors & Products B3log
B3log siyuan
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:L'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-18T11:19:36.761Z

Reserved: 2026-08-17T10:48:45.738Z

Link: CVE-2026-74905

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-18T12:19:30.780

Modified: 2026-08-18T12:19:30.780

Link: CVE-2026-74905

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T13:00:06Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)