{"cve":"CVE-2025-24981","nvd":{"published":"2025-02-06T18:15:32.847","modified":"2026-06-17T08:59:55.240","status":"Deferred","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L","score":9.3},"cwes":["CWE-79"],"references":["https://github.com/nuxt-modules/mdc/blob/main/src/runtime/parser/utils/props.ts#L16","https://github.com/nuxt-modules/mdc/commit/99097738b5561639e9bf247c55d8103236618bf3","https://github.com/nuxt-modules/mdc/security/advisories/GHSA-j82m-pc2v-2484"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:59:18.731010617+00:00"},"epss":{"cve":"CVE-2025-24981","score":0.00684,"percentile":0.52595,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-j82m-pc2v-2484","url":"https://osv.dev/vulnerability/GHSA-j82m-pc2v-2484","summary":"Parsed HTML anchor links in Markdown provided to parseMarkdown can result in XSS in @nuxtjs/mdc","modified":"2025-02-13T16:49:46Z","packages":[{"ecosystem":"npm","name":"@nuxtjs/mdc","purl":"pkg:npm/%40nuxtjs/mdc","ranges":["<0.13.3"],"fixed":["0.13.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}