Remote Code Execution Vulnerability in md-to-pdf from Simon Haenisch
CVE-2025-65108
10CRITICAL
What is CVE-2025-65108?
The md-to-pdf CLI tool, used for converting Markdown files to PDF, contains a vulnerability that allows execution of arbitrary code through a specially crafted Markdown front-matter block containing JavaScript. This flaw arises in the gray-matter library, impacting the safety and integrity of the markdown to pdf conversion process. This critical issue is addressed in version 5.2.5, and users are urged to upgrade to this version to mitigate security risks.
Affected Version(s)
md-to-pdf < 5.2.5
