Cross-Site Scripting (XSS) in @nuxtjs/mdc
Summary
Cross-site scripting in @nuxtjs/mdc (CVE-2026-63671). Confidential information can be exposed externally. Exploitable via validateProps. Mitigation: upgrade to 0.22.1 or later.
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
A vulnerability tracked as CVE-2026-63671 has been found in @nuxtjs/mdc.
Attackers can target a specific entry point like validateProps over the network to misuse the product.
Confidential information can be exposed externally. CVSS score: 8.1/10.
What to do: upgrade @nuxtjs/mdc to 0.22.1 or later.
If unsure, ask your IT team or search "@nuxtjs/mdc CVE-2026-63671" on the vendor's site.
CVE-2026-63671 (@nuxtjs/mdc) — CWE-79 / CVSS v3 8.1
Attack vector: remote (network-reachable) / unauthenticated
Attack surface: validateProps / validateProp / unsafeLinkPrefix / parseMarkdown
Patched: 0.22.1 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
Cross-site scripting (XSS) (CWE-79) exists in @nuxtjs/mdc. Attackers reach the vulnerable code path via validateProps without authentication.
Check the vendor advisory for the affected versions of @nuxtjs/mdc. Attack surface: validateProps / validateProp / unsafeLinkPrefix / parseMarkdown.
Severity: High (CVSS 8.1/10). Confidential information can be exposed externally.
Update to 0.22.1.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r '@nuxtjs/mdc' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r '@nuxtjs/mdc' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
@nuxtjs/mdcを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply patchpatch
Upgrade @nuxtjs/mdc to 0.22.1ステージング環境で 0.22.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| npm@nuxtjs/mdc |
< 0.22.1→ 0.22.1 |
0.22.1 |
Original description The description as published by the source.
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.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- patch github.com
- patch github.com
- web github.com
- web github.com