CVE-2025-54075 Details
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.
A remote script-inclusion vulnerability leading to stored cross-site scripting has been identified in the @nuxtjs/mdc package, prior to version 0.17.2. This vulnerability allows a Markdown author to inject a <base> element with a malicious href. The <base> tag alters the resolution of relative URLs, enabling the injection of scripts, styles, or images from an external, attacker-controlled origin. Once loaded, any injected JavaScript executes in the context of the site.
Users are advised to sanitize or disallow <base> tags in the Markdown renderer. The safest approach is to remove them entirely. Alternatively, <base> tags can be restricted to same-origin URLs and block certain protocols like http:, https:, and data:. Until a patch is released, raw HTML can be disabled in Markdown or an external sanitizer like DOMPurify can be used to remove <base> tags.
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 Jul 18, 2025CISA-ADP
Assessed Jul 22, 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/security/advisories/GHSA-cj6r-rrr9-fg82 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/nuxt-modules/mdc/commit/3657a5bf2326a73cd3d906f57149146a412b962a | [email protected] | Source CodeVendor |
| https://github.com/nuxt-modules/mdc/security/advisories/GHSA-cj6r-rrr9-fg82 | [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
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 22, 2025 | CVE Modified | CISA-ADP |
| Jul 18, 2025 | New CVE Received | [email protected] |
Volerion