CVE Explorer
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 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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"md-to-pdf","vendor":"simonhaenisch","versions":[{"status":"affected","version":"< 5.2.5"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:c5e1da6d4c42b948142d297378befe2cbdba5354b9613063c3b406e773e106be · sha256:83df2ae7fb42b4c1… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":10,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:c5e1da6d4c42b948142d297378befe2cbdba5354b9613063c3b406e773e106be · sha256:83df2ae7fb42b4c1… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-94","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:c5e1da6d4c42b948142d297378befe2cbdba5354b9613063c3b406e773e106be · sha256:83df2ae7fb42b4c1… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/simonhaenisch/md-to-pdf/commit/46bdcf2051c8d1758b391c1353185a179a47a4d9","tags":["x_refsource_MISC"],"url":"https://github.com/simonhaenisch/md-to-pdf/commit/46bdcf2051c8d1758b391c1353185a179a47a4d9"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:c5e1da6d4c42b948142d297378befe2cbdba5354b9613063c3b406e773e106be · sha256:83df2ae7fb42b4c1… · /containers/cna/references/1
{"name":"https://github.com/simonhaenisch/md-to-pdf/security/advisories/GHSA-547r-qmjm-8hvw","tags":["x_refsource_CONFIRM"],"url":"https://github.com/simonhaenisch/md-to-pdf/security/advisories/GHSA-547r-qmjm-8hvw"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:c5e1da6d4c42b948142d297378befe2cbdba5354b9613063c3b406e773e106be · sha256:83df2ae7fb42b4c1… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.