CVE-2025-65108

CRITICAL CVSS 3.1: 10.0 EPSS 0.96%
Updated Oct 18, 2026
md-to-pdf
Parameter Value
CVSS 10.0 (CRITICAL)
Fixed In 5.2.5
Type CWE-94 (Code Injection)
Vendor md-to-pdf
Public PoC No

md-to-pdf is a CLI tool for converting Markdown files to PDF using Node.js and headless Chrome. Prior to version 5.2.5, a Markdown front-matter block that contains JavaScript delimiter causes the JS engine in gray-matter library to execute arbitrary code in the Markdown to PDF converter process of md-to-pdf library, resulting in remote code execution. This issue has been patched in version 5.2.5.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Weakness Type (CWE)