{"id":"CVE-2025-24981","published":"2025-02-06T17:26:06Z","modified":"2025-02-12T19:51:09Z","title":"Parsed HTML anchor links in Markdown provided to parseMarkdown can result in XSS in @nuxtjs/mdc","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. In affected versions unsafe parsing logic of the URL from markdown can lead to arbitrary JavaScript code due to a bypass to the existing guards around the `javascript:` protocol scheme in the URL. The parsing logic implement in `props.ts` maintains a deny-list approach to filtering potential malicious payload. It does so by matching protocol schemes like `javascript:` and others. These security guards can be bypassed by an adversarial that provides JavaScript URLs with HTML entities encoded via hex string. Users who consume this library and perform markdown parsing from unvalidated sources could result in rendering vulnerable XSS anchor links. This vulnerability has been addressed in version 0.13.3 and all users are advised to upgrade. There are no known workarounds for this vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00966,"percentile":0.60359,"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-j82m-pc2v-2484","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nuxt-modules/mdc/commit/99097738b5561639e9bf247c55d8103236618bf3","tags":["x_refsource_MISC"]},{"url":"https://github.com/nuxt-modules/mdc/blob/main/src/runtime/parser/utils/props.ts#L16","tags":["x_refsource_MISC"]}],"priority":{"score":18.6,"factors":[{"name":"EPSS percentile","points":12.07},{"name":"CVSS severity","points":6.51}]},"vendorSlug":"nuxt-modules","affectedVersions":[{"vendor":"nuxt-modules","product":"mdc","versions":["< 0.13.3"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-02-06T19:33:19.101192Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@nuxtjs/mdc","vulnerableRanges":["<0.13.3"],"patched":["0.13.3"],"from":["GHSA-j82m-pc2v-2484"],"provenance":"source"}],"summary":{"text":"@nuxtjs/mdc (MDC, by nuxt-modules) has a flaw in the parsing of URLs in Markdown passed to parseMarkdown, located in the props.ts logic, which filters dangerous links with a deny-list of protocol schemes such as javascript:. An attacker can supply a javascript: URL with its scheme obfuscated by hex-encoded HTML entities to bypass that filter and inject script into rendered anchor links, but this requires that the application parse Markdown from unvalidated sources, and the victim must interact with the rendered link.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:36:49Z"},"euvd":{"id":"EUVD-2025-4001","exploited":false,"provenance":"source"}}