{"id":"CVE-2021-23639","details":"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.","aliases":["GHSA-x949-7cm6-fm6p"],"modified":"2026-04-02T06:47:21.029087Z","published":"2021-12-10T20:15:08.387Z","related":["SNYK-JS-MDTOPDF-1657880"],"references":[{"type":"FIX","url":"https://github.com/simonhaenisch/md-to-pdf/commit/a716259c548c82fa1d3b14a3422e9100619d2d8a"},{"type":"FIX","url":"https://github.com/simonhaenisch/md-to-pdf/issues/99"},{"type":"FIX","url":"https://snyk.io/vuln/SNYK-JS-MDTOPDF-1657880"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/simonhaenisch/md-to-pdf","events":[{"introduced":"0"},{"fixed":"4ce706e52b5e135931164daf899a7e9d33fb3ac1"},{"fixed":"a716259c548c82fa1d3b14a3422e9100619d2d8a"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"5.0.0"}]}}],"versions":["v1.1.0","v1.2.0","v1.2.1","v2.0.0","v2.0.1","v2.1.0","v2.1.1","v2.1.2","v2.1.3","v2.1.4","v2.1.5","v2.2.0","v2.3.0","v2.3.1","v2.3.2","v2.4.0","v2.4.1","v2.4.2","v2.5.0","v2.6.1","v2.6.2","v2.6.3","v2.6.4","v2.7.0","v2.7.1","v2.8.0","v2.8.1","v2.8.2","v3.0.0","v3.0.0-pre.0","v3.0.0-pre.1","v3.0.1","v3.1.0","v3.1.1","v3.1.2","v3.2.0","v3.2.1","v3.3.0","v3.3.1","v3.3.2","v4.0.0","v4.0.1","v4.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23639.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}