{"id":"CVE-2025-65108","revision":"6cd56dde955349bfa433183f64d693c1","records":[{"revision":"6cd56dde955349bfa433183f64d693c1","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2025-65108","aliases":[],"title":"md-to-pdf is vulnerable to arbitrary JavaScript code execution when parsing front matter","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.","state":0,"publishedAt":"2025-11-21T21:52:02.729+00:00","modifiedAt":"2025-11-24T17:17:08.879+00:00","affected":[{"ecosystem":"Vendor product","name":"md-to-pdf","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"simonhaenisch\",\n                    \"product\": \"md-to-pdf\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 5.2.5\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"severity":"CRITICAL"}],"references":["https://github.com/simonhaenisch/md-to-pdf/security/advisories/GHSA-547r-qmjm-8hvw","https://github.com/simonhaenisch/md-to-pdf/commit/46bdcf2051c8d1758b391c1353185a179a47a4d9"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-65108","license":"CVE Program Terms of Use","key":"cve-program:CVE-2025-65108","identifiers":["CVE-2025-65108"]},"retained":false,"historicalAffected":[]}],"coverage":[]}