CVE-2025-54075
JavaScript vulnerability analysis and mitigation

Overview

CVE-2025-54075 affects MDC, a tool for writing Markdown documents that interact with Vue components. The vulnerability was discovered in versions prior to 0.17.2, where a remote script-inclusion and stored cross-site scripting (XSS) vulnerability allows Markdown authors to inject a base element. The issue was disclosed on July 18, 2025, and affects the @nuxtjs/mdc package (GitHub Advisory, NVD).

Technical details

The vulnerability exists in the validateProp() function within src/runtime/parser/utils.ts. The function fails to properly validate the 'href' attribute on base tags, allowing them to bypass security checks. The CVSS v3.1 base score is 8.3 (High) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L. The vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation) (GitHub Advisory).

Impact

When exploited, the vulnerability allows attackers to rewrite how all subsequent relative URLs are resolved, enabling the loading of scripts, styles, or images from external, attacker-controlled origins. This can lead to arbitrary JavaScript execution in the site's context, potentially resulting in full takeover of visitor sessions, credential theft, defacement, phishing, or CSRF attacks (GitHub Advisory).

Mitigation and workarounds

The issue has been fixed in version 0.17.2. Until patched, users can either disable raw HTML in Markdown or use an external sanitizer like DOMPurify with FORBID_TAGS: ['base']. The fix involves disallowing or sanitizing base tags in the renderer by either stripping them entirely or restricting href attributes to same-origin URLs (GitHub Advisory, GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66456CRITICAL9.1
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-66457HIGH7.5
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-65849MEDIUM6.9
  • JavaScriptJavaScript
  • altcha
NoNoDec 08, 2025
CVE-2025-66202MEDIUM6.5
  • JavaScriptJavaScript
  • astro
NoYesDec 09, 2025
CVE-2025-14284MEDIUM5.1
  • JavaScriptJavaScript
  • @tiptap/extension-link
NoYesDec 09, 2025

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