Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2409+ Articles
159+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. CVE-2026-74799: SiYuan pprof Debug Endpoints Exposed Without Authentication
CVE-2026-74799: SiYuan pprof Debug Endpoints Exposed Without Authentication

Critical Security Alert

This vulnerability is actively being exploited. Immediate action is recommended.

SECURITYCRITICALCVE-2026-74799

CVE-2026-74799: SiYuan pprof Debug Endpoints Exposed Without Authentication

SiYuan before 3.7.4 exposes Go pprof debug endpoints unauthenticated, leaking in-memory secrets including API keys and auth codes.

Dylan H.

Security Team

August 18, 2026
3 min read

Affected Products

  • SiYuan < 3.7.4

Overview

A critical vulnerability has been identified in SiYuan, an open-source, local-first personal knowledge management application. CVE-2026-74799 allows unauthenticated attackers to access Go runtime net/http/pprof debug endpoints, enabling extraction of sensitive in-memory data including authentication tokens and AI provider API keys.

The vulnerability carries a CVSS score of 9.3, reflecting the severe impact of unauthenticated access to live heap dumps and goroutine state.

Vulnerability Details

SiYuan registers Go's built-in net/http/pprof debug endpoints — including /debug/pprof/heap, /debug/pprof/goroutine, and related routes — without requiring authentication. The flaw is triggered when the application is launched without the --mode flag set to exactly prod.

In development or default mode, these endpoints are fully accessible to anyone with network access to the SiYuan instance. The heap dump endpoint in particular is exploitable for extracting live in-memory secrets, including:

  • AccessAuthCode — SiYuan's primary access authentication token
  • AI provider API keys — credentials for OpenAI, Anthropic, and other configured AI services stored in application memory

Affected Endpoints

EndpointData Exposed
/debug/pprof/heapFull heap dump — includes all in-memory variables and secrets
/debug/pprof/goroutineGoroutine stack traces revealing execution context
/debug/pprof/Index of all available profiling endpoints
/debug/pprof/cmdlineProcess command line arguments

Impact

An attacker with access to the network interface SiYuan is listening on can:

  1. Retrieve a full heap dump via a simple HTTP GET request
  2. Parse the binary dump offline to extract string-valued secrets
  3. Use extracted AccessAuthCode for full authenticated access to the SiYuan workspace
  4. Exfiltrate AI API keys to incur charges or access sensitive AI-mediated data

Since SiYuan is frequently run locally or on home servers without strict network segmentation, the attack surface includes local network attackers, malicious browser scripts (if SiYuan listens on 0.0.0.0), and any process on the same host.

Technical Context

Go's net/http/pprof package registers itself via init() when imported, adding profiling routes to the default HTTP mux. Applications that use http.DefaultServeMux and import net/http/pprof (even indirectly) automatically expose these routes unless explicitly protected. SiYuan failed to gate these routes behind its authentication middleware when not running in prod mode.

Fix

The vulnerability is patched in SiYuan v3.7.4. The fix restricts pprof endpoints to authenticated sessions or removes them entirely in non-development builds.

Remediation

  • Update immediately to SiYuan v3.7.4 or later
  • If immediate update is not possible, ensure SiYuan is launched with --mode prod
  • Restrict network access to the SiYuan port (default: 6806) via firewall rules
  • Rotate any API keys or credentials that may have been accessible while the vulnerable version was running
  • Audit access logs for unexpected requests to /debug/pprof/ paths

References

  • NVD: CVE-2026-74799
  • SiYuan GitHub Repository
#CVE#SiYuan#Information Disclosure#Authentication Bypass#Go

Related Articles

CVE-2026-33669: SiYuan Unauthenticated Document Content

A critical unauthenticated information disclosure vulnerability in SiYuan, the personal knowledge management system, allows remote attackers to retrieve...

4 min read

CVE-2026-74800: SiYuan Stored XSS via Asset Upload Enables Full Kernel API Access

SiYuan before 3.7.4 fails to set Content-Disposition and X-Content-Type-Options headers, enabling stored XSS with full kernel API access.

3 min read

SiYuan API Token Brute-Force via Missing Rate Limiting — CVE-2026-73056

SiYuan's CheckAuth() middleware has no rate limiting, allowing unauthenticated attackers to brute-force API tokens and gain full admin access (CVSS 9.8).

3 min read
Back to all Security Alerts