CVE-2025-5273
JavaScript vulnerability analysis and mitigation

Overview

CVE-2025-5273 affects all versions of the mcp-markdownify-server package, a Model Context Protocol (MCP) server that converts various file types and web content to Markdown format. The vulnerability was discovered and disclosed on May 28, 2025, by Raul Onitza-Klugman from Snyk Security Research. The vulnerability allows unauthorized access to files and directories through the get-markdown-file tool (Snyk Advisory).

Technical details

The vulnerability is classified as CWE-552 (Files or Directories Accessible to External Parties) and exists in the get-markdown-file tool functionality. It has received a CVSS v4.0 score of 8.2 (HIGH) with the vector string CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N/E:P, and a CVSS v3.1 score of 6.5 (MEDIUM) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N (NVD).

Impact

When exploited, this vulnerability allows an attacker to read arbitrary files from the host running the server. The impact primarily affects confidentiality, as the attacker can access files that should be restricted, potentially exposing sensitive information (Snyk Advisory).

Exploitability

The vulnerability requires user interaction but no special privileges for exploitation. Snyk has developed a proof-of-concept exploit that demonstrates how an attacker can craft a prompt to read arbitrary files from the host system (Snyk Advisory).

Mitigation and workarounds

A fix has been pushed to the master branch but has not yet been published as a new version. As a temporary workaround, administrators can set the MD_SHARE_DIR environment variable to restrict the directory from which files can be retrieved, using the command MD_SHARE_DIR=[SOME_PATH] pnpm run start (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-77415CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-77414CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-77413CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-63421HIGH7.5
  • JavaScript logoJavaScript
  • @keystone-6/core
NoYesAug 21, 2026
CVE-2026-53509MEDIUM5.7
  • JavaScript logoJavaScript
  • @aborruso/ckan-mcp-server
NoYesAug 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management