CVE-2025-65108 - CVE House
Back to Database
Status published Critical CVE-2025-65108

md-to-pdf is vulnerable to arbitrary JavaScript code execution when parsing front matter

Vulnerability Description

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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2025-65108

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

simonhaenisch

View all reports →

Affected Software

md-to-pdf
Vulnerable Versions:
< 5.2.5

Timeline

Official Publish: November 21st, 2025
Last Modified: November 24th, 2025
Added to House: July 22nd, 2026

CVSS Vectors

V3: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Weaknesses (CWE)