Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @nuxtjs/mdc
  4. ›
  5. CVE-2025-24981

CVE-2025-24981: Parsed HTML anchor links in Markdown provided to parseMarkdown can result in XSS in @nuxtjs/mdc

February 6, 2025 (updated February 13, 2025)

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

Code Behaviors & Features

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 →

Affected versions

All versions before 0.13.3

Fixed versions

  • 0.13.3

Solution

Upgrade to version 0.13.3 or above.

Impact 9.3 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/@nuxtjs/mdc/CVE-2025-24981.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:41 +0000.