CVE-2025-65108

CRITICAL

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.

CVSS 3.110.0
EPSS1.0%
Percentile61th
PatchUnknown
CVSS Vector — Plain English Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
CWE Weakness Definitions
CWE-94: Code Injection

Attacker injects arbitrary code that is executed by the application process.

Related Attack Patterns (CAPEC)
CAPEC-35 Leverage Executable Code in Non-Executable Files
via CWE-94
CAPEC-77 Manipulating User-Controlled Variables
via CWE-94
CAPEC-242 Code Injection
via CWE-94

Mapping is CWE-to-CAPEC per MITRE CAPEC 3.9.

◆ AI Analysis — automated analysis, not human-reviewed

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 →
Frequently Asked Questions
What is CVE-2025-65108?
CVE-2025-65108 affects md-to-pdf versions prior to 5.2.5, allowing remote code execution through malicious Markdown front-matter blocks.
What is the CVSS score for CVE-2025-65108?
CVE-2025-65108 has CVSS 10.0 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H. EPSS: 1.0%.
Is CVE-2025-65108 actively exploited?
No confirmed active exploitation of CVE-2025-65108 as of 2026-10-24.
How do I remediate CVE-2025-65108?
Priority: IMMEDIATE.
What systems are affected by CVE-2025-65108?
CVE-2025-65108 affects Block; Javascript.
Vulnerability Details
CVE IDCVE-2025-65108
BSIDBS-2025-GLOBAL-033659-C BreachSpider Global ID
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Published2025-11-21
Last Modified2026-10-18
ICS Relevance15%
Weakness (CWE)
SourceNVD
Official 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.

Source: NIST NVD / MITRE CVE Database

Attack Vector Analysis — CITED Relevance

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

Affected Products
VendorProductAffected Versions
Block — —
Javascript — —
Remediation

No official vendor advisory link on record. See the CVE record →

Threat Intelligence
● Threat Intelligence Validated: October 2026 | Threat Age: 336 Days
CISA known-exploitedNot in KEV catalog
Public ExploitNot confirmed
PoC CodeNot confirmed
AI Enrichment Record — provenance & audit hash
Model/workspace/models/qwen2.5-coder-32b-instruct-bf16
ConfidenceHIGH
Enriched At2026-05-24
SHA-512 Audit Hash56a3bd975b0164d2a1583fcaf309b9d2034a66d7ee98d84fb222b8516fc34497acbe879635bd353f9dc3ba4d8b3a8d70831ea9bd7b94f783203ce316403bc47f
Related CVEs affecting Block
CVE-2024-8672 9.9 The Widget Options – The #1 WordPress Widget & Block Control Plugin plugin fo... CVE-2026-25345 9.9 Improper Validation of Specified Quantity in Input vulnerability in GalleryCr... CVE-2026-48172 9.8 LiteSpeed User-End cPanel Plugin before 2.4.5 allows privilege escalation (po... CVE-2026-34415 9.8 Xerte Online Toolkits versions 3.15 and earlier contain an incomplete input v... CVE-2025-68794 9.8 In the Linux kernel, the following vulnerability has been resolved: iomap: a...
View all Block CVEs →

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 →