CVE-2025-24981
JavaScript vulnerability analysis and mitigation

Overview

MDC is a tool for writing documents with Vue components using Markdown. A critical vulnerability (CVE-2025-24981) was discovered affecting versions 0.13.2 and earlier, where unsafe URL parsing logic in the markdown processor could lead to arbitrary JavaScript code execution. The vulnerability was disclosed on February 6, 2025, and has been assigned a CVSS score of 9.3 (Critical) (GitHub Advisory).

Technical details

The vulnerability exists in the URL parsing logic implemented in props.ts, which uses a deny-list approach to filter potentially malicious payloads by matching protocol schemes like 'javascript:'. However, this security mechanism can be bypassed by providing JavaScript URLs with HTML entities encoded via hex strings. The parser fails to properly sanitize these encoded values, allowing attackers to inject malicious JavaScript code (GitHub Advisory, NVD).

Impact

Applications that consume this library and perform markdown parsing from unvalidated sources (such as LLM-generated text, user input, or other untrusted data sources) could render vulnerable XSS anchor links. This could lead to arbitrary JavaScript code execution in the context of users' browsers (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.13.3. All users are advised to upgrade to this version or later. There are no known workarounds for this vulnerability (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management