A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-68948

CVE-2025-68948: B3log Siyuan Auth Bypass Vulnerability

CVE-2025-68948 is an authentication bypass vulnerability in B3log Siyuan caused by hardcoded cryptographic secrets. Attackers can decrypt session cookies to steal credentials and hijack accounts. Learn the technical details.

Updated: May 19, 2026

CVE-2025-68948 Overview

CVE-2025-68948 affects SiYuan, a self-hosted open source personal knowledge management application. Versions 3.5.1 and prior use a hardcoded cryptographic secret to sign and encrypt session cookies. The hardcoded key renders session encryption ineffective because anyone with access to the public source can derive it. SiYuan stores the sensitive AccessAuthCode inside the session cookie, so an attacker who captures an encrypted cookie can decrypt it locally and recover the authentication token in plaintext. The flaw maps to CWE-321 Use of Hard-coded Cryptographic Key and CWE-798 Use of Hard-coded Credentials.

Critical Impact

An attacker who intercepts a SiYuan session cookie can decrypt it offline, extract the AccessAuthCode, and fully take over the victim's authenticated session.

Affected Products

  • B3log SiYuan versions 3.5.1 and prior
  • Self-hosted SiYuan Note deployments exposing the web interface
  • Any SiYuan instance reachable over a network where session cookies can be intercepted

Discovery Timeline

  • 2025-12-27 - CVE-2025-68948 published to NVD
  • 2026-01-02 - Last updated in NVD database

Technical Details for CVE-2025-68948

Vulnerability Analysis

SiYuan uses a session store that encrypts cookies with a cryptographic secret embedded directly in the application source. Because the secret is shipped with every installation, every deployment of SiYuan signs and encrypts session data with the same key. The session payload contains the AccessAuthCode, which is the value SiYuan uses to authenticate users to the web interface. The encryption layer therefore provides no confidentiality boundary against any party that can read the public repository.

An attacker who obtains an encrypted session cookie — through network interception on plaintext HTTP, a malicious browser extension, cross-site scripting, log exposure, or a shared workstation — can take the cookie offline. Using the publicly known key, they decrypt the cookie locally and read the embedded AccessAuthCode. That code can then be replayed to authenticate to the target SiYuan instance, granting full access to the victim's notebooks and stored data.

Root Cause

The root cause is the use of a hardcoded cryptographic key for the session store. Cookie encryption only protects confidentiality when the signing and encryption key is unique per deployment and kept secret. Embedding the key in source code violates both requirements and effectively reduces cookie protection to obfuscation.

Attack Vector

Exploitation requires network access to a victim's session cookie but no prior authentication or user interaction. After capturing the cookie, the attacker performs the decryption offline and then issues authenticated requests to the SiYuan server.

No verified public exploit code is available. See the GitHub Security Advisory GHSA-f7ph-rc3w-qp28 for vendor technical details.

Detection Methods for CVE-2025-68948

Indicators of Compromise

  • Authentication events for a single SiYuan user originating from multiple IP addresses or geographies within a short window.
  • Requests to authenticated SiYuan endpoints carrying a valid session cookie but lacking the preceding login flow.
  • Anomalous export, bulk read, or configuration changes shortly after a cookie is observed traversing untrusted networks.

Detection Strategies

  • Inspect web server and reverse proxy logs for reuse of the same SiYuan session cookie value across distinct client fingerprints or IPs.
  • Alert on SiYuan running on networks that allow plaintext HTTP, since cookies traversing HTTP are trivially captured.
  • Review SiYuan instance version banners across the environment and flag any node still running 3.5.1 or earlier.

Monitoring Recommendations

  • Forward SiYuan access logs and the fronting reverse proxy logs into a centralized analytics platform for correlation.
  • Monitor for sudden changes to the AccessAuthCode configuration or repeated failed-then-successful access patterns.
  • Track outbound connections from SiYuan hosts to detect data staging after a successful session takeover.

How to Mitigate CVE-2025-68948

Immediate Actions Required

  • Upgrade SiYuan to the version released after 3.5.1 that addresses GHSA-f7ph-rc3w-qp28.
  • Rotate the AccessAuthCode on every affected SiYuan instance after upgrading, and invalidate all existing sessions.
  • Place SiYuan behind HTTPS with HSTS to prevent cookie interception on the wire.
  • Restrict SiYuan exposure to trusted networks or a VPN when public exposure is not required.

Patch Information

The maintainers documented the issue in the SiYuan GitHub Security Advisory GHSA-f7ph-rc3w-qp28. Apply the fixed release identified in that advisory. After upgrading, regenerate the session secret if the deployment exposes a configuration option for it, and force re-authentication of all users.

Workarounds

  • Terminate SiYuan only behind a TLS-enforcing reverse proxy and disable any plaintext HTTP listener.
  • Restrict access to the SiYuan port using firewall rules so cookies cannot be intercepted by untrusted networks.
  • Set a strong, unique AccessAuthCode and rotate it on a defined schedule until the patched version is deployed.
bash
# Example NGINX hardening for a SiYuan reverse proxy
server {
    listen 443 ssl http2;
    server_name siyuan.example.com;

    ssl_certificate     /etc/ssl/certs/siyuan.crt;
    ssl_certificate_key /etc/ssl/private/siyuan.key;

    add_header Strict-Transport-Security "max-age=63072000; includeSubDomains" always;
    add_header X-Frame-Options DENY always;

    location / {
        proxy_pass http://127.0.0.1:6806;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_cookie_flags ~ Secure HttpOnly SameSite=Strict;
    }
}

# Redirect any plaintext request to HTTPS
server {
    listen 80;
    server_name siyuan.example.com;
    return 301 https://$host$request_uri;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechB3log Siyuan

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-321

  • CWE-798
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-32767: B3log Siyuan Auth Bypass Vulnerability

  • CVE-2026-40922: B3log Siyuan RCE Vulnerability

  • CVE-2026-33476: B3log Siyuan Path Traversal Vulnerability

  • CVE-2026-33194: B3log Siyuan Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English