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
    • 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-24981

CVE-2025-24981: MDC Markdown Parser XSS Vulnerability

CVE-2025-24981 is a cross-site scripting flaw in MDC Markdown parser that allows attackers to bypass protocol filters using HTML entities. This post covers the technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-24981 Overview

CVE-2025-24981 is a Cross-Site Scripting (XSS) vulnerability affecting MDC (Markdown Components), a tool designed to parse regular Markdown and write documents that interact deeply with Vue components. The vulnerability exists in the unsafe parsing logic of URLs from markdown content, which allows attackers to bypass existing security guards around the javascript: protocol scheme through HTML entity hex encoding.

Critical Impact

Attackers can inject arbitrary JavaScript code through malicious markdown content by encoding javascript: URLs with HTML entities, potentially leading to complete compromise of user sessions and data theft.

Affected Products

  • MDC (Markdown Components) versions prior to 0.13.3
  • Nuxt applications using vulnerable MDC module versions
  • Any application parsing untrusted markdown content through affected MDC versions

Discovery Timeline

  • 2025-02-06 - CVE CVE-2025-24981 published to NVD
  • 2025-02-06 - Last updated in NVD database

Technical Details for CVE-2025-24981

Vulnerability Analysis

The vulnerability stems from insufficient input validation in the URL parsing logic implemented in props.ts. The security mechanism relies on a deny-list approach to filter potentially malicious payloads by matching protocol schemes like javascript: and similar dangerous prefixes. However, this approach fails to account for HTML entity encoding, specifically hex-encoded representations of characters.

When an adversary provides JavaScript URLs with HTML entities encoded via hex strings (e.g., javascript: instead of javascript:), the deny-list check is bypassed because the raw comparison fails to match the encoded variant. The markdown parser then renders these as legitimate anchor links, which when clicked by a user, execute arbitrary JavaScript in the context of the victim's browser session.

This vulnerability is classified as CWE-79 (Cross-Site Scripting). Applications that consume the MDC library and perform markdown parsing from unvalidated sources are particularly at risk, as they may inadvertently render XSS payloads in their Vue components.

Root Cause

The root cause lies in the deny-list implementation within props.ts that performs direct string matching against protocol prefixes without first normalizing or decoding the input. The original validation simply checked if a value started with known unsafe prefixes like javascript:, vbscript:, or data:text/html. This approach is fundamentally flawed because attackers can represent the same characters using various encoding schemes that the browser will decode at render time.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction beyond clicking a malicious link. An attacker can craft markdown content containing anchor links with HTML entity-encoded JavaScript URLs. When this markdown is parsed by a vulnerable MDC version and rendered in a Vue application, the malicious links appear legitimate. Upon user interaction with these links, the encoded JavaScript is decoded by the browser and executed in the user's session context, enabling session hijacking, credential theft, or defacement attacks.

typescript
   'data:text/xml'
 ]
 
+function isAnchorLinkAllowed(value: string) {
+  const decodedUrl = decodeURIComponent(value)
+  const urlSanitized = decodedUrl.replace(/&#x([0-9a-f]+);?/gi, '')
+    .replace(/&#(\d+);?/g, '')
+    .replace(/&[a-z]+;?/gi, '')
+
+  try {
+    const url = new URL(urlSanitized)
+    if (unsafeLinkPrefix.some(prefix => url.protocol.toLowerCase().startsWith(prefix))) {
+      return false
+    }
+  } catch {
+    return false
+  }
+
+  return true
+}
+
 export const validateProp = (attribute: string, value: string) => {
   if (attribute.startsWith('on')) {
     return false
   }
 
   if (attribute === 'href' || attribute === 'src') {
-    return !unsafeLinkPrefix.some(prefix => value.toLowerCase().startsWith(prefix))
+    return isAnchorLinkAllowed(value)
   }

Source: GitHub Commit Update

Detection Methods for CVE-2025-24981

Indicators of Compromise

  • Presence of HTML entity encoded strings in markdown content, particularly hex sequences like j or decimal sequences targeting characters in javascript:
  • Unusual anchor tags in rendered HTML containing partially encoded protocol schemes
  • JavaScript execution events triggered from anchor link clicks in markdown-rendered content
  • Error logs indicating URL parsing failures or malformed protocol detection

Detection Strategies

  • Implement Content Security Policy (CSP) headers to detect and block inline JavaScript execution from untrusted sources
  • Monitor application logs for markdown content containing suspicious HTML entity patterns
  • Deploy web application firewalls (WAF) with rules to detect encoded javascript: protocol variants
  • Use browser developer tools or security plugins to identify XSS-vulnerable anchor elements in rendered pages

Monitoring Recommendations

  • Enable verbose logging for markdown parsing operations to capture input content before rendering
  • Set up alerts for CSP violation reports indicating blocked script execution attempts
  • Monitor user-generated content submissions for patterns matching HTML entity encoded URLs
  • Track dependency versions across applications to identify systems running vulnerable MDC versions

How to Mitigate CVE-2025-24981

Immediate Actions Required

  • Upgrade MDC to version 0.13.3 or later immediately across all affected applications
  • Audit all markdown content sources to identify potentially malicious input that may have been submitted
  • Implement Content Security Policy headers as a defense-in-depth measure against XSS
  • Review application logs for any evidence of exploitation attempts using encoded JavaScript URLs

Patch Information

The vulnerability has been addressed in MDC version 0.13.3. The fix introduces a new isAnchorLinkAllowed() function that properly sanitizes URLs by first decoding URL-encoded characters, then stripping HTML entities (both hex and decimal formats), and finally validating the resulting URL against the deny-list of unsafe protocols. This ensures that encoded bypass attempts are normalized before security checks are applied. All users are advised to upgrade to version 0.13.3 or later. The security patch can be reviewed in the GitHub Commit Update.

Workarounds

  • There are no known workarounds for this vulnerability according to the security advisory
  • As a temporary measure, restrict markdown parsing to trusted content sources only
  • Implement server-side content filtering to strip HTML entity encoded patterns before markdown processing
  • Deploy CSP headers with strict script-src directives to limit the impact of any successful XSS exploitation
bash
# Update MDC to patched version
npm update @nuxt/mdc@0.13.3

# Or using yarn
yarn upgrade @nuxt/mdc@0.13.3

# Verify installed version
npm list @nuxt/mdc

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechMdc

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.38%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Utility Function Code

  • GitHub Commit Update

  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
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