PoC Monitor
← All CVEs
CVE-2025-65108published 21 Nov 2025 21:52 UTCData: JSON · API

Simonhaenisch md-to-pdf

md-to-pdf is vulnerable to arbitrary JavaScript code execution when parsing front matter

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS10.0critical · scored by CNA · CWE-94
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

simonhaenisch md-to-pdf
  • < 5.2.5

Fixed in 5.2.5

Mitigation

Upgrade md-to-pdf to 5.2.5 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published21 Nov 2025 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.