{"id":"CVE-2025-54075","published":"2025-07-18T15:47:38Z","modified":"2025-07-22T15:14:53Z","title":"mdc vulnerable to XSS in markdown rendering bypassing HTML filter. (N°4)","vendor":"nuxt-modules","product":"mdc","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00344,"percentile":0.28704,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/nuxt-modules/mdc/security/advisories/GHSA-cj6r-rrr9-fg82","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nuxt-modules/mdc/commit/3657a5bf2326a73cd3d906f57149146a412b962a","tags":["x_refsource_MISC"]}],"priority":{"score":11.6,"factors":[{"name":"EPSS percentile","points":5.74},{"name":"CVSS severity","points":5.81}]},"vendorSlug":"nuxt-modules","affectedVersions":[{"vendor":"nuxt-modules","product":"mdc","versions":["< 0.17.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-07-22T15:14:50.320818Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@nuxtjs/mdc","vulnerableRanges":["<0.17.2"],"patched":["0.17.2"],"from":["GHSA-cj6r-rrr9-fg82"],"provenance":"source"}],"summary":{"text":"The mdc tool from nuxt-modules, specifically the @nuxtjs/mdc component that renders Markdown to Vue components in versions prior to 0.17.2, fails to neutralize injected HTML, letting a Markdown author insert a base element that redirects relative URL resolution. An attacker with the ability to author Markdown content can exploit this without network access, authentication, or user interaction beyond normal page viewing, to make the page load scripts and resources from an attacker-controlled origin and run arbitrary JavaScript in the site's context.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:52:11Z"},"euvd":{"id":"EUVD-2025-21892","exploited":false,"provenance":"source"}}