{"id":74116,"date":"2025-11-22T01:46:33","date_gmt":"2025-11-21T22:16:33","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-65108-md-to-pdf-is-vulnerable-to-arbitrary-javascript-code-execution-when-parsing-front-matter\/"},"modified":"2025-11-22T01:46:33","modified_gmt":"2025-11-21T22:16:33","slug":"cve-2025-65108-md-to-pdf-is-vulnerable-to-arbitrary-javascript-code-execution-when-parsing-front-matter","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-65108-md-to-pdf-is-vulnerable-to-arbitrary-javascript-code-execution-when-parsing-front-matter\/","title":{"rendered":"CVE-2025-65108 &#8211; md-to-pdf is vulnerable to arbitrary JavaScript code execution when parsing front matter"},"content":{"rendered":"<p>CVE ID : CVE-2025-65108<\/p>\n<p>Published :  Nov. 21, 2025, 10:16 p.m. | 59\u00a0minutes ago<\/p>\n<p>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.<\/p>\n<p>Severity: 10.0 | CRITICAL<\/p>\n<p>Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-65108 Published : Nov. 21, 2025, 10:16 p.m. | 59\u00a0minutes ago 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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-74116","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/74116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=74116"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/74116\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=74116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=74116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=74116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}