{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-65108","id":"CVE-2025-65108","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.","descriptionLong":"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.","published":"2025-11-21T21:52:02.729Z","updated":"2026-10-28T02:30:28.773847132Z","reserved":"2025-11-17T20:55:34.694Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"github.com"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["simonhaenisch md-to-pdf"],"affectedProducts":[{"vendor":"simonhaenisch","product":"md-to-pdf","defaultStatus":null,"versions":[{"version":"< 5.2.5","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"md-to-pdf","purl":"pkg:npm/md-to-pdf","ranges":["<5.2.5"],"fixed":["5.2.5"],"advisory":"GHSA-547r-qmjm-8hvw"}],"cwes":["CWE-94"],"aliases":["GHSA-547r-qmjm-8hvw"],"references":[{"url":"https://github.com/simonhaenisch/md-to-pdf/security/advisories/GHSA-547r-qmjm-8hvw","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/simonhaenisch/md-to-pdf/commit/46bdcf2051c8d1758b391c1353185a179a47a4d9","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/65xxx/CVE-2025-65108.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-65108","tags":["advisory"]},{"url":"https://github.com/simonhaenisch/md-to-pdf","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total"},"epss":0.0096,"epssPercentile":0.62253,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-65108","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-65108","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-65108","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-547r-qmjm-8hvw","ok":true,"note":"GHSA-547r-qmjm-8hvw"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-65108","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}