The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-2026-25647

CVE-2026-25647: Lute Markdown Engine XSS Vulnerability

CVE-2026-25647 is a stored XSS vulnerability in Lute Markdown engine that lets attackers inject malicious scripts into rendered notes. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 13, 2026

CVE-2026-25647 Overview

Lute is a structured Markdown engine supporting Go and JavaScript. A Stored Cross-Site Scripting (XSS) vulnerability exists in Lute version 1.7.6 and earlier, as used in SiYuan note-taking application. The vulnerability resides in the Markdown rendering engine and allows attackers to inject malicious JavaScript into Markdown text or notes. When another user views the rendered content, the malicious script executes in the context of their session, potentially leading to session hijacking, data theft, or unauthorized actions.

Critical Impact

Attackers can inject persistent malicious JavaScript that executes when victims view rendered Markdown content, enabling session hijacking and unauthorized access to user data.

Affected Products

  • Lute versions 1.7.6 and earlier
  • SiYuan note-taking application (versions using vulnerable Lute)
  • Applications implementing Lute Markdown engine without sanitization

Discovery Timeline

  • 2026-02-06 - CVE CVE-2026-25647 published to NVD
  • 2026-02-06 - Last updated in NVD database

Technical Details for CVE-2026-25647

Vulnerability Analysis

This Stored Cross-Site Scripting (XSS) vulnerability (CWE-79) stems from insufficient input sanitization in the Markdown rendering engine. When processing hyperlinks within Markdown content, the Lute engine failed to properly sanitize the href attribute values before rendering them into HTML output. This allows attackers to craft malicious Markdown content containing JavaScript payloads that persist in the application and execute whenever other users view the rendered content.

The vulnerability is particularly concerning in collaborative note-taking environments like SiYuan, where multiple users may share and view Markdown documents. An attacker with basic privileges can inject malicious scripts that execute with the permissions of any user who subsequently views the compromised content.

Root Cause

The root cause lies in the render/protyle_renderer.go file where hyperlink href attributes were processed without proper sanitization when the Sanitize option was enabled. The rendering logic processed URLs containing special characters but did not apply the SanitizeSrc() function to validate and clean potentially malicious URL schemes (such as javascript: URIs) before incorporating them into the rendered HTML output.

Attack Vector

The attack vector is network-based and requires low privileges with user interaction. An authenticated attacker can:

  1. Create or edit a Markdown note containing a malicious hyperlink
  2. Inject JavaScript code through specially crafted URL schemes in the href attribute
  3. Share or make the note accessible to other users
  4. When victims click the rendered link or the content is processed, the malicious script executes in their browser session

The following patch was applied to address this vulnerability in render/protyle_renderer.go:

go
 			if node.ParentIs(ast.NodeTableCell) {
 				href = strings.ReplaceAll(href, "\\|", "|")
 			}

			if r.Options.Sanitize {
				href = SanitizeSrc(href)
			}

 			// 超链接元素地址中存在 `"` 字符时粘贴无法正常解析 https://github.com/siyuan-note/siyuan/issues/11385
 			href = strings.ReplaceAll(href, "\"", """)

Source: GitHub Commit Changes

The fix introduces a new SanitizeSrc() function in render/sanitizer.go:

go
 	"title":    nil,
 }
 
func SanitizeSrc(src string) string {
	img := strings.ReplaceAll(src, "\"", "__@QUOTE@__")
	img = "<img src=\"" + img + "\"></img>"
	img = string(sanitize([]byte(img)))
	img = string(util.TagSrcStr((img)))
	img = strings.ReplaceAll(img, "__@QUOTE@__", "\"")
	return img
}

func Sanitize(str string) string {
 	return string(sanitize([]byte(str)))
 }

Source: GitHub Commit Changes

Detection Methods for CVE-2026-25647

Indicators of Compromise

  • Presence of javascript: or data: URI schemes within Markdown hyperlinks in stored notes
  • Unusual URL patterns in Markdown content containing encoded script tags or event handlers
  • User reports of unexpected browser behavior when viewing specific shared notes
  • Web application logs showing suspicious script execution attempts originating from rendered Markdown content

Detection Strategies

  • Implement Content Security Policy (CSP) headers to detect and block inline script execution
  • Monitor stored Markdown content for patterns matching XSS payloads such as javascript:, onerror=, onclick=, and encoded variants
  • Deploy web application firewalls (WAF) with XSS detection rules to identify malicious injection attempts
  • Audit application logs for unusual rendering activity or error patterns associated with malformed URLs

Monitoring Recommendations

  • Enable browser console logging to capture JavaScript errors that may indicate attempted XSS exploitation
  • Implement real-time content scanning for user-submitted Markdown before storage
  • Monitor for abnormal session activity that could indicate successful script execution and session hijacking
  • Track access patterns to shared notes and flag suspicious viewing activity from unexpected sources

How to Mitigate CVE-2026-25647

Immediate Actions Required

  • Update Lute to a version newer than 1.7.6 that includes the security patch
  • Update SiYuan to the latest version that incorporates the patched Lute library
  • Audit existing Markdown content for potentially malicious hyperlinks containing JavaScript payloads
  • Implement Content Security Policy headers to restrict inline script execution as a defense-in-depth measure

Patch Information

The vulnerability has been addressed in commit 0118e218916cf0cc7df639b50ce74e0c6c3d1868 to the Lute repository. The fix adds proper URL sanitization by implementing the SanitizeSrc() function and calling it when processing hyperlink href attributes with the sanitize option enabled. Refer to the GitHub Security Advisory GHSA-rw25-98wq-76qv for additional details and updated version information.

Workarounds

  • Disable or restrict shared note functionality until the patch can be applied
  • Implement server-side content sanitization using a robust HTML sanitizer library before storing or rendering Markdown content
  • Deploy Content Security Policy headers with script-src 'self' to prevent execution of injected inline scripts
  • Restrict note creation and editing privileges to trusted users in shared environments
bash
# Example: Add Content Security Policy header in nginx configuration
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline';" always;

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechLute

  • SeverityMEDIUM

  • CVSS Score4.6

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Commit Changes

  • GitHub Security Advisory GHSA-rw25-98wq-76qv
  • Latest CVEs
  • CVE-2025-9185: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9184: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9180: Mozilla Firefox Auth Bypass Vulnerability

  • CVE-2025-8030: Mozilla Firefox RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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