CVE-2025-24981 Details
Description
MDC is a tool to take regular Markdown and write documents interacting deeply with a Vue component. In affected versions unsafe parsing logic of the URL from markdown can lead to arbitrary JavaScript code due to a bypass to the existing guards around the `javascript:` protocol scheme in the URL. The parsing logic implement in `props.ts` maintains a deny-list approach to filtering potential malicious payload. It does so by matching protocol schemes like `javascript:` and others. These security guards can be bypassed by an adversarial that provides JavaScript URLs with HTML entities encoded via hex string. Users who consume this library and perform markdown parsing from unvalidated sources could result in rendering vulnerable XSS anchor links. This vulnerability has been addressed in version 0.13.3 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
A cross-site scripting (XSS) vulnerability has been identified in the @nuxtjs/mdc library, specifically in versions through 0.13.2. The issue arises from an unsafe URL parsing logic in the markdown processing that fails to properly sanitize JavaScript URLs. This flaw allows the existing security measures, which aim to block harmful protocols like 'javascript:', to be bypassed. The vulnerability can be exploited by encoding JavaScript URLs with HTML entities, evading the library's deny-list approach to filtering potential threats. As a result, users who utilize this library to parse markdown from untrusted sources may inadvertently create XSS vulnerabilities through anchor links.
Users are advised to upgrade to version 0.13.3 or later, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Feb 6, 2025CISA-ADP
Assessed Feb 6, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/nuxt-modules/mdc/blob/main/src/runtime/parser/utils/props.ts#L16 | [email protected] | Source CodeVendor |
| https://github.com/nuxt-modules/mdc/commit/99097738b5561639e9bf247c55d8103236618bf3 | [email protected] | Source CodeVendor |
| https://github.com/nuxt-modules/mdc/security/advisories/GHSA-j82m-pc2v-2484 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| @nuxtjs/mdc | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 6, 2025 | New CVE Received | [email protected] |
Volerion