{"id":"CVE-2026-54701","aliases":["CVE-2026-54701"],"related":[],"kind":"vulnerability","state":"published","title":"Markdown Preview Enhanced: Stored XSS via Unsanitized `.crossnote/head.html` Injection in Webview","summary":"Markdown Preview Enhanced is a Markdown preview extension for Visual Studio Code. Prior to 0.8.30, Markdown Preview Enhanced reads repository-controlled .crossnote/head.html content and passes it through resolvePathsInHeader before inserting it into the head of the preview webview document without removing executable content. Script-capable markup executes while the document loads, before the React application and DOMPurify initialize, and can access acquireVsCodeApi to send messages from the webview to the extension host. Opening a Markdown preview in a malicious repository is sufficient to trigger the injected content, and no additional click within the notification or preview is required. This issue is fixed in version 0.8.30.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Markdown Preview Enhanced is a Markdown preview extension for Visual Studio Code. Prior to 0.8.30, Markdown Preview Enhanced reads repository-controlled .crossnote/head.html content and passes it through resolvePathsInHeader before inserting it into the head of the preview webview document without removing executable content. Script-capable markup executes while the document loads, before the React application and DOMPurify initialize, and can access acquireVsCodeApi to send messages from the webview to the extension host. Opening a Markdown preview in a malicious repository is sufficient to trigger the injected content, and no additional click within the notification or preview is required. This issue is fixed in version 0.8.30.","source":"cvelist"}],"published":"2026-10-14T19:11:51.712Z","modified":"2026-10-20T03:17:15.347Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 0.8.30","status":"affected"}],"vendor":"shd101wyy","product":"vscode-markdown-preview-enhanced","source":"cvelist"}],"references":[{"url":"https://github.com/shd101wyy/vscode-markdown-preview-enhanced/security/advisories/GHSA-mcwg-4j78-qwv3","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/shd101wyy/crossnote/pull/444","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/shd101wyy/vscode-markdown-preview-enhanced/pull/2323","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/shd101wyy/crossnote/commit/8c55a2ba3365712a1caa4abeece0383bc2994d48","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/shd101wyy/vscode-markdown-preview-enhanced/commit/8bc848b6cbb42b9f35a0f95f7c3bf29b8302970e","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/shd101wyy/crossnote/releases/tag/0.9.31","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/shd101wyy/vscode-markdown-preview-enhanced/releases/tag/0.8.30","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-10-20T02:00:52.506Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54701","url":"https://www.cve.org/CVERecord?id=CVE-2026-54701","licence":"CVE Terms of Use","modified":"2026-10-20T02:01:15.836Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54701","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54701","licence":"Public domain","modified":"2026-10-20T03:17:15.347Z"}],"updatedAt":"2026-11-25T22:59:44.795Z","epss":{"score":0.00297,"percentile":0.24078,"date":"2026-12-01T12:00:22.000Z"}}