{"id":"CVE-2021-23639","aliases":["EUVD-2021-2610","GHSA-x949-7cm6-fm6p","SNYK-JS-MDTOPDF-1657880"],"status":"published","title":"Remote Code Execution (RCE)","description":"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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.05413,"percentile":0.92759,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-94"],"published":"2021-12-10T20:05:16Z","modified":"2026-10-20T10:54:32Z","exploits":[{"source":"pocgithub","id":"MohandAcherir/CVE-2021-23639","title":"MohandAcherir/CVE-2021-23639","date":"2024-10-04","url":"https://github.com/MohandAcherir/CVE-2021-23639"}],"fixes":[{"ecosystem":"npm","package":"md-to-pdf","fixed_in":["5.0.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"md-to-pdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0"}]}]},{"source":"osv","ecosystem":"npm","package":"md-to-pdf","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.0.0"}]}]}],"products":[{"vendor":"markdown_to_pdf_project","product":"markdown_to_pdf"},{"vendor":"simonhaenisch","product":"md-to-pdf"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-MDTOPDF-1657880","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/simonhaenisch/md-to-pdf/issues/99","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/simonhaenisch/md-to-pdf/commit/a716259c548c82fa1d3b14a3422e9100619d2d8a","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23639","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-x949-7cm6-fm6p"},{"url":"https://github.com/simonhaenisch/md-to-pdf","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-23639","title":"Remote Code Execution (RCE)","description":"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.","status":"published","published":"2021-12-10T20:05:16.643Z","modified":"2024-09-17T00:45:43.108Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"cna"}],"updated_at":"2026-11-02T14:33:00.819444Z"}],"euvd":[{"id":"EUVD-2021-2610","description":"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.","status":"published","published":"2021-12-10T20:05:16Z","modified":"2024-09-17T00:45:43Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-03T00:28:56.465986Z"}],"ghsa":[{"id":"GHSA-x949-7cm6-fm6p","title":"Code Injection in md-to-pdf.","description":"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.","status":"published","published":"2021-12-16T14:34:40Z","modified":"2023-02-01T05:06:44Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:36:39.76883Z"}],"nvd":[{"id":"CVE-2021-23639","description":"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.","status":"published","published":"2021-12-10T20:15:08.387Z","modified":"2026-06-17T03:38:50.977Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"updated_at":"2026-11-02T14:07:02.189991Z"}],"osv":[{"id":"CVE-2021-23639","description":"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.","status":"published","published":"2021-12-10T20:15:08.387Z","modified":"2026-10-20T10:54:32.703922799Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:18.778776Z"},{"id":"GHSA-x949-7cm6-fm6p","title":"Code Injection in md-to-pdf.","description":"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.","status":"published","published":"2021-12-16T14:34:40Z","modified":"2026-07-08T06:49:43.15170467Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:46:59.835583Z"}]}}
