Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/siyuan-note/siyuan/kernel
  4. ›
  5. CVE-2026-74802

CVE-2026-74802: SiYuan: Cross-Site WebSocket Hijacking on the admin-only network proxy endpoint (`/ws/network/proxy`) via explicit `CheckOrigin: true` bypass

October 2, 2026

/ws/network/proxy is an admin-only WebSocket forward-proxy endpoint (target URL and headers fully attacker-specifiable via query parameters). Its websocket.Upgrader explicitly overrides CheckOrigin to unconditionally return true — disabling the origin validation that the gorilla/websocket library otherwise enforces by default. WebSocket handshake requests are not subject to CORS preflight at all (unlike fetch/XHR), so origin validation for WebSocket endpoints has to be done deliberately by the server; here it has been deliberately turned off instead. Combined with the endpoint’s own query-parameter-driven proxy target, this is a textbook Cross-Site WebSocket Hijacking (CSWSH) primitive on a capability that amounts to an authenticated network pivot through the SiYuan kernel process.

References

  • github.com/advisories/GHSA-3cc2-h3v6-rqpq
  • github.com/siyuan-note/siyuan/commit/cb67e0b4fab57c9c5f458c1fd0df5ecf4417b696
  • github.com/siyuan-note/siyuan/releases/tag/v3.8.0
  • github.com/siyuan-note/siyuan/security/advisories/GHSA-3cc2-h3v6-rqpq
  • nvd.nist.gov/vuln/detail/CVE-2026-74802
  • www.vulncheck.com/advisories/siyuan-cross-site-websocket-hijacking-via-network-proxy

Code Behaviors & Features

Detect and mitigate CVE-2026-74802 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-20260803045322-cb67e0b4fab5

Fixed versions

  • 0.0.0-20260803045322-cb67e0b4fab5

Solution

Upgrade to version 0.0.0-20260803045322-cb67e0b4fab5 or above.

Impact

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

Learn more about CVSS

Weakness

  • CWE-346: Origin Validation Error
  • CWE-352: Cross-Site Request Forgery (CSRF)
  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

go/github.com/siyuan-note/siyuan/kernel/CVE-2026-74802.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Mon, 12 Oct 2026 00:22:02 +0000.