CVE-2025-24981CWE-79

Parsed HTML anchor links in Markdown provided to parseMarkdown can result in XSS in @nuxtjs/mdc

Critical · published February 6, 2025

CVSS v3.1
9.3
EPSS
1%
Percentile
52.0
In the wild
Unconfirmed
What it is

🚨 A crafty URL can unleash unchecked JavaScript, putting your markdown documents at risk! 🔥 Think of it like a restaurant where the chef trusts every delivery without checking the ingredients — one bad delivery could spoil the entire menu. Here, an attacker can sneak in malicious JavaScript by cleverly encoding their ingredients in a hex string! An attacker could create seemingly harmless markdown that leads to devastating XSS vulnerabilities, allowing them to hijack user sessions, steal sensitive data, or even take over the application entirely. This is no minor oversight; it opens the door for significant security breaches and user trust issues. 😱

Put simply

Think of it like a restaurant where the chef trusts every delivery without checking the ingredients — one bad delivery could spoil the entire menu. Here, an attacker can sneak in malicious JavaScript by cleverly encoding their ingredients in a hex string! This vulnerability in MDC arises from unsafe URL parsing in markdown, which allows adversaries to bypass the deny-list that usually blocks `javascript:` protocol schemes. When HTML entities are encoded, the existing guards fail, leading to the execution of arbitrary JavaScript code.

What to do

An attacker could create seemingly harmless markdown that leads to devastating XSS vulnerabilities, allowing them to hijack user sessions, steal sensitive data, or even take over the application entirely. This is no minor oversight; it opens the door for significant security breaches and user trust issues. 😱 Upgrade to version 0.13.3 immediately to close this critical vulnerability. Ensure that all markdown parsing is conducted only on trusted sources and consider implementing additional validation checks. Regularly review your libraries for updates to stay ahead of potential threats. You've got this! By taking quick action, you'll safeguard your applications and keep your users safe. 🛡️

The record
Technical detail
CVSS v3.1
9.3 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L
CVSS v4.0
Not supplied
EPSS
0.00684 · 52.0th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2025-02-06T17:26Z
EPSS history
Timeline
  • 06 FEB 17:26Z
    Parsed HTML anchor links in Markdown provided to parseMarkdown can result in XSS in @nuxtjs/mdc
    cvelistv5