CVE-2025-65108
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-11-21

Last updated on: 2025-11-21

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-11-21
Last Modified
2025-11-21
Generated
2026-06-16
AI Q&A
2025-11-22
EPSS Evaluated
2026-06-14
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
md-to-pdf md-to-pdf *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability exists in the md-to-pdf tool prior to version 5.2.5, where a Markdown front-matter block containing a JavaScript delimiter causes the gray-matter library's JavaScript engine to execute arbitrary code during the Markdown to PDF conversion process. This leads to remote code execution on the system running the converter.

Impact Analysis

The vulnerability can allow an attacker to execute arbitrary code remotely on the system running the md-to-pdf tool, potentially leading to full system compromise, data loss, or unauthorized control over the affected environment.

Mitigation Strategies

Upgrade the md-to-pdf tool to version 5.2.5 or later, as this version contains the patch that fixes the remote code execution vulnerability caused by the JavaScript delimiter in Markdown front-matter blocks.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-65108. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart