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-05-07
AI Q&A
2025-11-22
EPSS Evaluated
2026-05-05
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 Powered Q&A
Can you explain this vulnerability to me?

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.


How can this vulnerability impact me? :

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.


What immediate steps should I take to mitigate this vulnerability?

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.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart