Skip to main content

@nuxtjs/mdc EUVDEUVD-2026-80789

| CVE-2026-63671 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-09-16 GitHub_M GHSA-mxm6-v9r6-r94c
8.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft Markdown with SVG xlink:href javascript: or iframe data:text/html
  2. Delivery
    Submit to app rendering untrusted Markdown via @nuxtjs/mdc
  3. Exploit
    Payload survives validateProp sanitizer gap
  4. Execution
    Victim loads/clicks rendered content
  5. Persist
    Attacker JS executes in page/opaque origin
  6. Impact
    Session hijack or in-page data theft

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an application that renders attacker-controlled Markdown through @nuxtjs/mdc versions prior to 0.22.1 using parseMarkdown with allowDangerousHtml (the default), and relying on validateProp/validateProps/unsafeLinkPrefix for sanitization. Two specific payloads bypass the sanitizer: an SVG anchor 'xlink:href' (parsed as the xLinkHref prop, which validateProp never checked because it only inspected attributes named 'href' or 'src') carrying a 'javascript:' URL, and an '<iframe src>' set to 'data:text/html,...' (the data denylist compared only url.protocol, which is just 'data:', so the full 'data:text/html' string passed). Limiting factors: the app must actually feed untrusted Markdown into MDC; the SVG xlink:href variant additionally requires the victim to click/select the link (user interaction), whereas the iframe data:text/html variant executes automatically on render. Plain 'href' javascript: URLs, srcdoc, object, script, and base elements are already blocked and are not viable vectors.

Impact

This is a genuine, well-substantiated client-side XSS in @nuxtjs/mdc, corroborated across the vendor GitHub Security Advisory (GHSA-mxm6-v9r6-r94c), the fixing PR (#491), the merge commit (61d636c), and added regression tests that concretely prove both bypass paths. The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N (8.1 High) is largely consistent with the description: network-delivered untrusted Markdown, low complexity, no privileges. One notable tension: the vendor set UI:R, but the iframe 'data:text/html' path executes automatically when the rendered content loads (no click needed) - only the SVG xlink:href 'javascript:' path requires the victim to select the link. That auto-execution path arguably warrants UI:N, which would push the score toward ~9.1; I flag this as a divergence to verify. On the other real-world signals: there is NO CISA KEV listing, NO public exploit code referenced, and NO EPSS score in the input, so exploitation status is 'no public exploit identified at time of analysis.' Net: this is a real, high-severity library sanitizer-bypass that matters for any Nuxt/Vue site rendering user-supplied Markdown, but there is no evidence of active exploitation, so it is a patch-promptly priority rather than an emergency drop-everything one. The core caveat is that impact only materializes where the application feeds attacker-controlled Markdown into MDC with the default allowDangerousHtml behavior.

Exploit ScenarioDerived

An attacker submits Markdown containing an SVG anchor with 'xlink:href="javascript:..."' or an '<iframe src="data:text/html,...">' to an application that renders untrusted Markdown via @nuxtjs/mdc (e.g., comments, profile bios, wiki pages). When a victim views the rendered page, the iframe payload executes automatically in an opaque origin, or the SVG link executes in the page origin the moment the victim clicks it, running attacker JavaScript in the victim's session. No public exploit code is referenced, but the fixing PR includes working payloads in its regression tests that directly demonstrate both bypasses.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 16, 2026

Client-side cross-site scripting in @nuxtjs/mdc before 0.22.1 allows attackers to execute arbitrary JavaScript in the page origin by smuggling executable URLs past the module's built-in Markdown sanitizer. Because parseMarkdown runs with allowDangerousHtml enabled by default and the sanitizer (validateProps/validateProp plus unsafeLinkPrefix) is the only defense, two sibling gaps are exploitable: an SVG anchor xlink:href (surfaced as the xLinkHref prop) carrying a javascript: URL, and an iframe src set to data:text/html that survives because the denylist compares url.protocol ('data:') rather than the full URL. The vendor rates this CVSS 8.1, the assessed vector is CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (unauthenticated per PR:N), and exploitation requires an application that renders attacker-controlled Markdown through the vulnerable versions. No CISA KEV listing or public exploit code was identified at time of analysis, though the fix PR (#491) and its regression tests publicly document both bypass payloads.

RemediationAI

Upgrade @nuxtjs/mdc to 0.22.1 (vendor-released patch; https://github.com/nuxt-content/mdc/releases/tag/v0.22.1), which is the version containing the fixes from PR #491 and commit 61d636c2983f021288e4fc5c4006733b38cf0d53; verify the resolved dependency tree since transitive consumers such as Nuxt Content may pin older ranges. Full details and the affected-version declaration are in the advisory https://github.com/nuxt-content/mdc/security/advisories/GHSA-mxm6-v9r6-r94c. If immediate upgrade is not possible, compensating controls are: disable raw HTML rendering by calling parseMarkdown with allowDangerousHtml set to false (trade-off: legitimate inline HTML such as custom spans, iframes from trusted embeds, and <br> tags in authored Markdown will render as escaped text); or keep allowDangerousHtml enabled but run all untrusted Markdown output through a dedicated HTML sanitizer (for example sanitize-html or DOMPurify in the browser) before it reaches MDC, accepting the added CPU cost and the risk of sanitizer configuration drift; or restrict who can publish Markdown consumed by the renderer so only trusted authors supply content. Because the iframe data:text/html variant fires automatically on render whereas the SVG xlink:href variant requires a victim action, if untrusted content cannot be disabled then blocking unsanitized embedding and applying a strict Content-Security-Policy (frame-src 'none' or a vetted allowlist, plus script-src without unsafe-inline) meaningfully reduces the iframe path's impact, though CSP is a secondary control and does not repair the sanitizer gap.

Affected VersionsENISA

mdc < 0.22.1

Affected Packages

npm @nuxtjs/mdc fix: 0.22.1
euvd mdc fix: 0.22.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Root cause is a sanitizer coverage gap in the CWE-79 (improper neutralization of input during web page generation) class, inside the Markdown-to-Vue-component pipeline of @nuxtjs/mdc (source file src/runtime/parser/utils/props.ts). With allowDangerousHtml enabled by default, raw HTML embedded in Markdown is preserved as Vue element props, and the module relies on validateProps/validateProp/unsafeLinkPrefix to strip dangerous attribute values. Two concrete defects exist: (1) validateProp only inspected attributes literally named 'href' or 'src', so an SVG <a xlink:href="javascript:..."> is normalized by the HTML parser into the xLinkHref prop and never validated, yielding script execution in the page origin when the link is selected; (2) isAnchorLinkAllowed compared the denylist against url.protocol, which for a data:text/html payload is merely 'data:', so an <iframe src="data:text/html,..."> was allowed through and executed in an opaque origin on render. Plain href javascript: URLs, srcdoc, object, script, and base elements were already blocked, confirming these are narrow sibling gaps rather than a wholesale sanitizer failure. The fixing change in PR #491 (commit 61d636c) compares url.href instead of url.protocol and adds 'xlinkhref' to the validated attribute list, with new regression tests asserting that xLinkHref javascript: URLs and data:text/html payloads on iframe src and anchor href are removed while safe absolute and relative xlink values remain permitted. CPE data (cpe:2.3:a:nuxt-content:mdc:*:*:*:*:*:*:*:*) confirms the affected component is the @nuxtjs/mdc package itself, with no version bound in the CPE, so the vendor advisory's <0.22.1 range is authoritative.

Know when Mdc gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.1 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
vuln.today AI 9.1 CRITICAL

Network-delivered untrusted Markdown, low complexity, no privileges; the iframe data:text/html path auto-executes on render so UI:N rather than the vendor's UI:R; classic XSS C:H/I:H, no availability impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch available
Sep 16, 2026 - 15:18 EUVD
CVE Published
Sep 16, 2026 - 14:25 cve.org
HIGH 8.1

DescriptionCVE.org

MDC is a tool to take regular Markdown and write documents interacting deeply with a Vue component. Prior to 0.22.1, @nuxtjs/mdc uses parseMarkdown with allowDangerousHtml enabled by default and relies on validateProps, validateProp, and unsafeLinkPrefix to remove executable URLs from untrusted Markdown. validateProp checks only attributes named href or src, allowing an SVG xlink:href value represented as xLinkHref to retain a javascript: URL that executes in the page origin when selected. The data:text/html denylist entries are also compared against url.protocol, which is only data:, so an iframe src containing data:text/html survives sanitization and executes in an opaque origin when loaded. Plain href javascript: URLs, srcdoc, object, script, and base elements are already blocked, making these two paths specific sibling gaps in the sanitizer. This issue is fixed in version 0.22.1.

Technical POC Analysis

CWE-79 (Improper Neutralization of Input During Web Page Generation), with the advisory also tagging CWE-184 (Incomplete List of Disallowed Inputs).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

The @nuxtjs/mdc Markdown rendering module, in versions before 0.22.1, contains a client-side cross-site scripting flaw that lets an unauthenticated attacker execute JavaScript in the page origin when applications render attacker-controlled Markdown. This could enable session theft, page tampering, or user-impersonating actions in affected Nuxt applications, so leadership should prioritize remediation wherever untrusted Markdown is rendered. No public exploit was identified at time of analysis, and no vendor-released patch was identified at time of analysis.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis; disable allowDangerousHtml, sanitize or escape untrusted Markdown before rendering, restrict Markdown sources to trusted users, enforce CSP blocking inline scripts and javascript: URLs, and review SVG xlink:href and iframe data:text/html handling.

Threat Intelligence Overview

EPSS Score
0.4%
Top 68% exploitable
Prevalence
Medium
MDC is core Markdown renderer of Nuxt Content, common in Nuxt/Vue sites
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

60
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy