---
title: "CVE-2025-24981: Parsed HTML anchor links in Markdown provided to parseMarkdown can result in XSS in @nuxtjs/mdc"
url: https://erroneo.us/security/cve/CVE-2025-24981/
description: "CVE-2025-24981 (@nuxtjs/mdc (npm)): MDC is a tool to take regular Markdown and write documents interacting deeply with a Vue component. In affected versions…"
type: vulnerability-record
section: "Security Digest"
date_published: 2025-02-06
date_modified: 2025-02-12
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2025-24981"
kev: false
cvss: 9.3
epss: 0.00684
license: All rights reserved. Quote with attribution and a link.
---

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

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 0.7% , percentile 52: FIRST’s model estimates a 0.7% chance of exploitation activity in the next 30 days, higher than 52% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes @nuxtjs/mdc (npm) <= 0.13.2, fixed in 0.13.3 . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- npm `@nuxtjs/mdc` <= 0.13.2 → fixed: 0.13.3

## Affected products (CVE record)

- nuxt-modules mdc: < 0.13.3

## Severity

- GitHub_M CVSS 3.1: 9.3 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L`
- GitHub CVSS 3.1: 9.3 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable yes , technical impact partial .
- FIRST EPSS (model of 2026-10-21): 0.68% probability of exploitation activity in the next 30 days; percentile 52.

## Sources

- [GitHub Advisory GHSA-j82m-pc2v-2484](https://github.com/advisories/GHSA-j82m-pc2v-2484)
- [CVE.org record CVE-2025-24981](https://www.cve.org/CVERecord?id=CVE-2025-24981)
- [NVD entry CVE-2025-24981](https://nvd.nist.gov/vuln/detail/CVE-2025-24981)
- [github.com](https://github.com/nuxt-modules/mdc/security/advisories/GHSA-j82m-pc2v-2484)
- [github.com](https://github.com/nuxt-modules/mdc/commit/99097738b5561639e9bf247c55d8103236618bf3)
- [github.com](https://github.com/nuxt-modules/mdc/blob/main/src/runtime/parser/utils/props.ts#L16)

---
Source page: https://erroneo.us/security/cve/CVE-2025-24981/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
