{"id":"CVE-2026-54703","revision":null,"records":[{"revision":"24b2905f438544c0bbc9e509c73e407b","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-54703","aliases":[],"title":"Markdown Preview Enhanced: Arbitrary File Write via updateMarkdown Command Without Path Validation","description":"Markdown Preview Enhanced is a Markdown preview extension for Visual Studio Code. Prior to 0.8.30, the _crossnote.updateMarkdown command in Markdown Preview Enhanced accepts an arbitrary URI and attacker-controlled content, then passes them to vscode.workspace.fs.writeFile without validating that the target is the Markdown file represented by the current preview. JavaScript already executing in the preview webview can invoke this command through the extension message bridge and write any file permitted by the VS Code user's operating-system privileges, including user configuration, startup, source, and build files. This file-write vulnerability requires a separate webview JavaScript execution path, such as the independently tracked head.html injection and blind command-dispatch weaknesses. This issue is fixed in version 0.8.30.","state":0,"publishedAt":"2026-10-14T19:09:50.323+00:00","modifiedAt":"2026-10-15T14:21:40.113+00:00","affected":[{"ecosystem":"Vendor product","name":"vscode-markdown-preview-enhanced","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"shd101wyy\",\n                    \"product\": \"vscode-markdown-preview-enhanced\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 0.8.30\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","score":5.8,"severity":"MEDIUM"}],"references":["https://github.com/shd101wyy/vscode-markdown-preview-enhanced/security/advisories/GHSA-82rc-7g3m-2c42","https://github.com/shd101wyy/vscode-markdown-preview-enhanced/pull/2323","https://github.com/shd101wyy/vscode-markdown-preview-enhanced/commit/8bc848b6cbb42b9f35a0f95f7c3bf29b8302970e","https://github.com/shd101wyy/vscode-markdown-preview-enhanced/releases/tag/0.8.30"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-54703","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-54703","identifiers":["CVE-2026-54703"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-09T17:05:03.6461191+00:00","complete":true,"records":1772,"lastAttemptAt":"2026-11-09T17:05:03.6461191+00:00","lastSuccessAt":"2026-11-09T17:05:03.8531145+00:00","error":null,"lastVerifiedAt":"2026-11-09T17:05:03.853115+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-24e6fde7b744113daefb8f6135035fb8a5c69c9617c9c0d40574a0376532ffd3-c9cdfc1581e828ba6edad094382347f5c5591d8ad29e4b235259cf3365c4cd4f","complete":true,"records":421470,"lastAttemptAt":"2026-11-09T17:02:16.1896721+00:00","lastSuccessAt":"2026-11-09T17:02:15.8609908+00:00","error":null,"lastVerifiedAt":"2026-11-09T17:02:16.1896721+00:00","snapshotPublishedAt":"2026-11-09T16:22:58+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-473bda92d9f145e4a59d46ab39e596a4","complete":false,"records":13655,"lastAttemptAt":"2026-11-09T17:15:31.9295462+00:00","lastSuccessAt":"2026-11-09T17:15:31.925+00:00","error":"8 identifier lookups failed; latest failures include HTTP 403. Other identifiers were checked independently.","lastVerifiedAt":"2026-11-09T17:15:31.925+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13381,"expectedIdentifiers":13707,"failedIdentifiers":8},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-09T17:05:03.6461191+00:00","complete":true,"records":1096,"lastAttemptAt":"2026-11-09T17:05:03.6461191+00:00","lastSuccessAt":"2026-11-09T17:05:03.8539711+00:00","error":null,"lastVerifiedAt":"2026-11-09T17:05:03.8539712+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-27d7fc34e294426a8947cddc275fdd88","complete":true,"records":13667,"lastAttemptAt":"2026-11-09T17:05:13.4623818+00:00","lastSuccessAt":"2026-11-09T17:05:13.459+00:00","error":null,"lastVerifiedAt":"2026-11-09T17:05:13.459+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13707,"expectedIdentifiers":13707,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-980593e6977a6d1b4fb1eed5a1ffe88a468736f89f0a06f710924ad59132c023","complete":true,"records":9914,"lastAttemptAt":"2026-11-09T17:04:56.7195673+00:00","lastSuccessAt":"2026-11-08T11:07:07.068788+00:00","error":null,"lastVerifiedAt":"2026-11-09T17:04:56.7195673+00:00","snapshotPublishedAt":"2026-11-08T11:02:46+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-fde804134ecdda0ddd5ff5c26ee1fff5a6fa659311f7ef2e51c6ad54964db0e2","complete":true,"records":1971,"lastAttemptAt":"2026-11-09T17:02:16.3773977+00:00","lastSuccessAt":"2026-11-06T19:03:17.0399903+00:00","error":null,"lastVerifiedAt":"2026-11-09T17:02:16.3773977+00:00","snapshotPublishedAt":"2026-11-06T18:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-761ecc9061239b0da572dc9254c6f384c1d19339eb08408c436647a2f26129e9","complete":true,"records":3064,"lastAttemptAt":"2026-11-09T17:05:03.6013858+00:00","lastSuccessAt":"2026-11-09T17:05:03.4044794+00:00","error":null,"lastVerifiedAt":"2026-11-09T17:05:03.6013858+00:00","snapshotPublishedAt":"2026-11-09T16:33:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-f8ac1981a68d9f0cc4ed8b05de89035ef9b503c12568a353caa684b6b64f832a","complete":true,"records":231305,"lastAttemptAt":"2026-11-09T17:04:55.1051927+00:00","lastSuccessAt":"2026-11-09T17:04:53.3741561+00:00","error":null,"lastVerifiedAt":"2026-11-09T17:04:55.1051927+00:00","snapshotPublishedAt":"2026-11-09T16:33:28+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}