# CVE-2026-54703: Markdown Preview Enhanced: Arbitrary File Write via updateMarkdown Command Without Path Validation

- Severity: Medium 5.8 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-14T19:09:50.323Z
- Modified: 2026-10-16T20:02:37.630Z
- Weaknesses: CWE-73
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- shd101wyy vscode-markdown-preview-enhanced: < 0.8.30

## References

- <https://github.com/shd101wyy/vscode-markdown-preview-enhanced/security/advisories/GHSA-82rc-7g3m-2c42> (exploit)
- <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>

## Sources

- CVE List: [CVE-2026-54703](https://www.cve.org/CVERecord?id=CVE-2026-54703), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2026-54703](https://nvd.nist.gov/vuln/detail/CVE-2026-54703), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-54703 · Whole record: https://cve.day/CVE-2026-54703.json · Rebuilt by cve.day 2026-11-25T22:59:44.796Z
