Remote Code Execution Vulnerability in md-to-pdf from Simon Haenisch
CVE-2025-65108

10CRITICAL

Key Information:

Status
Vendor
CVE Published:
21 November 2025

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

References

CVSS V3.1

Score:
10
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Changed

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.
CVE-2025-65108 : Remote Code Execution Vulnerability in md-to-pdf from Simon Haenisch