CVE-2026-33670 Security Alert: CRITICAL Vulnerability

Urgent: CVE-2026-33670 requires immediate attention.

· 3 min read

```html

Executive Summary

A critical directory traversal vulnerability (CVE-2026-33670) has been identified in the github.com/siyuan-note/siyuan/kernel package. This flaw allows unauthorized access to the entire directory structure of a notebook, potentially leading to arbitrary document reading. With a CVSS score of 9.8, it poses a significant risk, particularly for solo developers and small teams.

Immediate Action

  • Immediately review your usage of github.com/siyuan-note/siyuan/kernel.
  • Patch your application by upgrading to the latest version once available.
  • Isolate any services using the vulnerable package from the internet until a fix is applied.
  • Monitor vendor advisories for updates and potential patches. (Vendor Advisory Link)
  • Consider implementing additional authentication mechanisms for sensitive APIs.

Affected Versions

  • github.com/siyuan-note/siyuan/kernel@<=1.0.0 vulnerable;
  • Upgrade to 1.0.1 or later (TODO: Confirm latest version).

Resolution Guide

To patch the vulnerability, follow these steps based on your development environment:

# For Go modules
go get github.com/siyuan-note/siyuan/kernel@latest

For enhanced security, consider hardening your configuration:

# Example of disabling the vulnerable endpoint in your configuration
api:
  file:
    readDir: false

If applicable, here's a minimal code patch snippet:

func readDir(path string) {
    // Ensure proper authentication before accessing the directory
    if !isAuthenticated() {
        return errors.New("unauthorized access")
    }
    // Existing directory reading logic...
}

Detection & Verification

To check if your application is vulnerable, run the following command:

# Check the current version of the package
go list -m all | grep siyuan-note/siyuan/kernel

To verify the fix, ensure the version reflects the upgrade:

# Confirm the updated version
go list -m all | grep siyuan-note/siyuan/kernel

Risk and Impact

If exploited, this vulnerability could allow attackers to enumerate and access all documents within a notebook, leading to unauthorized data exposure. The potential impact is significant, especially for applications handling sensitive information, making immediate remediation critical to protect user data and maintain trust.

```

Keep reading