Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-24028

CVE-2025-24028: Joplin Note-Taking App XSS Vulnerability

CVE-2025-24028 is a cross-site scripting flaw in Joplin note-taking application that affects users opening untrusted notes in the Rich Text Editor. This article covers technical details, affected versions, and mitigation.

Published: March 18, 2026

CVE-2025-24028 Overview

CVE-2025-24028 is a Cross-Site Scripting (XSS) vulnerability affecting Joplin, a free and open-source note-taking and to-do application. The vulnerability stems from differences between how Joplin's HTML sanitizer handles comments compared to how browsers process them. This parsing differential allows attackers to craft malicious notes that bypass Joplin's HTML sanitization, enabling arbitrary JavaScript execution when victims open untrusted notes in the Rich Text Editor.

The vulnerability affects both the Rich Text Editor and the Markdown viewer. However, the Markdown viewer benefits from cross-origin isolation, which prevents JavaScript from directly accessing functions and variables in the toplevel Joplin window. Users who open untrusted notes in the Rich Text Editor are at the highest risk, as this mode does not have the same isolation protections.

Critical Impact

Attackers can execute arbitrary JavaScript code in the context of the Joplin application by crafting malicious notes. This could lead to credential theft, data exfiltration, session hijacking, or further compromise of the user's system through the application's privileged context.

Affected Products

  • Joplin versions between 9b50539 and 3.2.11
  • Joplin Desktop application
  • Joplin Mobile application

Discovery Timeline

  • 2025-02-07 - CVE-2025-24028 published to NVD
  • 2025-04-18 - Last updated in NVD database

Technical Details for CVE-2025-24028

Vulnerability Analysis

This XSS vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation). The root cause lies in a parsing differential between Joplin's HTML sanitizer using htmlparser2 and browser HTML parsing engines. When HTML comments are processed, the sanitizer and browser interpret certain character sequences differently, allowing specially crafted comment content to break out of the comment context and inject executable code.

The vulnerability may have been introduced in commit 9b50539 when comment preservation was added to the Markdown renderer. The change allowed HTML comments to pass through the sanitizer for metadata purposes but failed to properly escape special characters within those comments.

Root Cause

The vulnerability originates in the packages/renderer/htmlUtils.ts file where HTML comments are processed. The original implementation directly passed comment data through without proper escaping:

typescript
oncomment: (encodedData: string) => {
    output.push(`<!--${encodedData}-->`);
},

This approach is dangerous because certain character sequences within comments can cause browsers to terminate comments prematurely. For example, when a <style> tag contains a comment like <!--</style>-->, the browser may interpret the </style> as closing the style block rather than treating it as comment content. This parsing differential enables attackers to inject arbitrary HTML and JavaScript that bypasses the sanitizer.

Attack Vector

The attack is network-based and requires user interaction. An attacker must craft a malicious note containing specially formatted HTML comments and convince a victim to open the note using Joplin's Rich Text Editor. The attack vector includes:

  1. Note Sharing: Attacker shares a malicious note through Joplin's sync or import features
  2. Note Import: Victim imports an ENEX or other note format containing the payload
  3. Collaborative Environments: In shared notebook scenarios, compromised notes propagate to other users

The Rich Text Editor lacks the cross-origin isolation protection present in the Markdown viewer, making it the primary exploitation target.

typescript
// Vulnerable code - comment data passed through without escaping
// Source: https://github.com/laurent22/joplin/commit/9b505395918bc923f34fe6f3b960bb10e8cf234e

		const parser = new htmlparser2.Parser({

			oncomment: (encodedData: string) => {
				output.push(`<!--${encodedData}-->`);
			},

			onopentag: (name: string, attrs: Record<string, string>) => {
				// Note: "name" and attribute names are always lowercase even
				// when the input is not. So there is no need to call

Source: GitHub Commit 9b50539

Detection Methods for CVE-2025-24028

Indicators of Compromise

  • Unexpected JavaScript execution or behavior when viewing notes in Joplin
  • Notes containing unusual HTML comment sequences with embedded < or > characters
  • Suspicious network requests originating from the Joplin application
  • Unexplained modifications to Joplin settings or data

Detection Strategies

  • Monitor Joplin application logs for unusual rendering errors or script execution warnings
  • Implement endpoint detection rules for suspicious HTML patterns in note content
  • Review imported notes and shared notebook content for malformed HTML comments
  • Analyze application behavior for unexpected network connections or data exfiltration attempts

Monitoring Recommendations

  • Enable verbose logging in Joplin to capture rendering events and errors
  • Deploy application-level monitoring to detect unauthorized JavaScript execution
  • Implement network traffic analysis to identify data exfiltration from Joplin processes
  • Consider sandboxing the Joplin application to limit potential damage from exploitation

How to Mitigate CVE-2025-24028

Immediate Actions Required

  • Upgrade Joplin to version 3.2.12 or later immediately
  • Avoid opening untrusted notes in the Rich Text Editor until patched
  • Use the Markdown viewer instead of Rich Text Editor for reviewing suspicious content
  • Review recently imported or shared notes for suspicious content

Patch Information

The vulnerability has been addressed in Joplin version 3.2.12. The fix properly escapes < and > characters within HTML comments using htmlentities(), preventing browser parsing differentials from being exploited.

The security patch modifies the comment handler in packages/renderer/htmlUtils.ts:

typescript
// Fixed code - properly escapes special characters in comments
// Source: https://github.com/laurent22/joplin/commit/2a058ed8097c2502e152b26394dc1917897f5817

		const parser = new htmlparser2.Parser({

			oncomment: (data: string) => {
				// Ensure that <s and >s are escaped within comments. In some cases,
				// these characters can end a comment early (e.g. <style><!--</style>-->)
				output.push(`<!--${htmlentities(data)}-->`);
			},

			onopentag: (name: string, attrs: Record<string, string>) => {

Source: GitHub Security Patch

For additional technical details, refer to the GitHub Security Advisory GHSA-5w3c-wph9-hq92.

Workarounds

  • There are no known workarounds for this vulnerability; upgrading to version 3.2.12 is the only solution
  • Use the Markdown viewer instead of Rich Text Editor as a temporary risk reduction measure (note: Markdown viewer has cross-origin isolation but may still be affected)
  • Avoid importing notes from untrusted sources until the application is updated
  • Consider disabling note synchronization from shared sources until patched
bash
# Verify Joplin version and update
# Check current version in Joplin: Help > About Joplin

# Update via package manager (if installed via snap)
snap refresh joplin-desktop

# Or download latest version from official website
# https://joplinapp.org/download/

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechJoplin

  • SeverityCRITICAL

  • CVSS Score9.6

  • EPSS Probability0.30%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-79
  • Technical References
  • Joplin App Development Spec
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Security Advisory GHSA-5w3c-wph9-hq92
  • Related CVEs
  • CVE-2025-27409: Joplin Server Path Traversal 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