{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-23639","published":"2021-12-10T20:15:08.387000Z","last_modified":"2026-06-17T03:38:50.977000Z","status":"Modified","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":[],"cpes":[{"criteria":"cpe:2.3:a:markdown_to_pdf_project:markdown_to_pdf:*:*:*:*:*:node.js:*:*","part":"a","vendor":"markdown_to_pdf_project","product":"markdown_to_pdf","version_end_excluding":"5.0.0"}],"cpes_truncated":false,"vendors":["markdown_to_pdf_project"],"products":["markdown_to_pdf_project/markdown_to_pdf"],"epss":{"score":0.05413,"percentile":0.93476,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-x949-7cm6-fm6p","ecosystem":"npm","name":"md-to-pdf","purl":"pkg:npm/md-to-pdf","ranges":[{"introduced":"0","fixed":"5.0.0"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2021-23639/","html_en":"/en/cve/CVE-2021-23639/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-23639","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-23639"},"untrusted":{"vendor_name":"Markdown To Pdf Project","product_name":"Markdown To Pdf","desc_en":"The package md-to-pdf before 5.0.0 are vulnerable to Remote Code Execution (RCE) due to utilizing the library gray-matter to parse front matter content, without disabling the JS engine.","affected":[],"references":[{"url":"https://github.com/simonhaenisch/md-to-pdf/commit/a716259c548c82fa1d3b14a3422e9100619d2d8a","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/simonhaenisch/md-to-pdf/issues/99","tags":["Exploit","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://snyk.io/vuln/SNYK-JS-MDTOPDF-1657880","tags":["Exploit","Patch","Third Party Advisory"]}]}}