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.
Published: 2025-11-21
Score: 10 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-547r-qmjm-8hvw md-to-pdf vulnerable to arbitrary JavaScript code execution when parsing front matter
History

Mon, 24 Nov 2025 18:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 24 Nov 2025 09:15:00 +0000

Type Values Removed Values Added
First Time appeared Simonhaenisch
Simonhaenisch md-to-pdf
Vendors & Products Simonhaenisch
Simonhaenisch md-to-pdf

Fri, 21 Nov 2025 22:00:00 +0000

Type Values Removed Values Added
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.
Title md-to-pdf is vulnerable to arbitrary JavaScript code execution when parsing front matter
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 10, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H'}


Subscriptions

Simonhaenisch Md-to-pdf
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2025-11-24T17:17:08.879Z

Reserved: 2025-11-17T20:55:34.694Z

Link: CVE-2025-65108

cve-icon Vulnrichment

Updated: 2025-11-24T17:17:04.810Z

cve-icon NVD

Status : Deferred

Published: 2025-11-21T22:16:33.317

Modified: 2026-04-15T00:35:42.020

Link: CVE-2025-65108

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2025-11-24T09:08:10Z

Weaknesses