CVE-2025-24981: Parsed HTML anchor links in Markdown provided to parseMarkdown can result in XSS in @nuxtjs/mdc
(updated )
An 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.
References
- github.com/advisories/GHSA-j82m-pc2v-2484
- github.com/nuxt-modules/mdc
- github.com/nuxt-modules/mdc/blob/main/src/runtime/parser/utils/props.ts
- github.com/nuxt-modules/mdc/commit/99097738b5561639e9bf247c55d8103236618bf3
- github.com/nuxt-modules/mdc/security/advisories/GHSA-j82m-pc2v-2484
- nvd.nist.gov/vuln/detail/CVE-2025-24981
Detect and mitigate CVE-2025-24981 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →