CVE-2025-65108
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 J...
Affects 0 products across 2 vendors.
Attacker injects arbitrary code that is executed by the application process.
Mapping is CWE-to-CAPEC per MITRE CAPEC 3.9.
CVE-2025-65108 affects md-to-pdf versions prior to 5.2.5, allowing remote code execution through malicious Markdown front-matter blocks.
BSID: BS-2025-GLOBAL-033659-C • Model: /workspace/models/qwen2.5-coder-32b-instruct-bf16 • Confidence: HIGH
Is this CVE in your environment?
BreachSpider monitors your ICS/OT environment for vulnerabilities like this one. No agents or network access required. Free to start.
Check My Environment →What is CVE-2025-65108?
What is the CVSS score for CVE-2025-65108?
Is CVE-2025-65108 actively exploited?
How do I remediate CVE-2025-65108?
What systems are affected by CVE-2025-65108?
| CVE ID | CVE-2025-65108 |
|---|---|
| BSID | BS-2025-GLOBAL-033659-C BreachSpider Global ID |
| CVSS Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| Published | 2025-11-21 |
| Last Modified | 2026-10-18 |
| ICS Relevance | 15% |
| Weakness (CWE) | |
| Source | NVD |
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.
Source: NIST NVD / MITRE CVE Database
An attacker can craft a Markdown file with a front-matter block containing JavaScript code. When this file is processed by md-to-pdf, the gray-matter library executes the JavaScript code, leading to arbitrary code execution in the context of the md-to-pdf process.
Exploitation Likelihood: CRITICAL
| Vendor | Product | Affected Versions |
|---|---|---|
| Block | — | — |
| Javascript | — | — |
No official vendor advisory link on record. See the CVE record →
| CISA known-exploited | Not in KEV catalog |
|---|---|
| Public Exploit | Not confirmed |
| PoC Code | Not confirmed |
AI Enrichment Record — provenance & audit hash
| Model | /workspace/models/qwen2.5-coder-32b-instruct-bf16 |
|---|---|
| Confidence | HIGH |
| Enriched At | 2026-05-24 |
| SHA-512 Audit Hash | 56a3bd975b0164d2a1583fcaf309b9d2034a66d7ee98d84fb222b8516fc34497acbe879635bd353f9dc3ba4d8b3a8d70831ea9bd7b94f783203ce316403bc47f |
Critical Severity - Know Your Exposure
A CVSS 10.0 vulnerability in your ICS environment cannot wait. BreachSpider maps critical CVEs to your specific assets and tells you what to fix first.
Create a free account →