{"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","SNYK-JS-MDTOPDF-1657880"],"modified":"2026-05-18T17:51:50.636955Z","published":"2021-12-10T20:15:08.387Z","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":{"source":["CPE_FIELD","REFERENCES"],"extracted_events":[{"introduced":"0"},{"fixed":"5.0.0"}],"cpe":"cpe:2.3:a:markdown_to_pdf_project:markdown_to_pdf:*:*:*:*:*:node.js:*:*"}}],"versions":["v4.1.0","v4.0.1","v4.0.0","v3.3.2","v3.3.1","v3.3.0","v3.2.1","v3.2.0","v3.1.2","v3.1.1","v3.1.0","v3.0.1","v3.0.0","v3.0.0-pre.1","v3.0.0-pre.0","v2.8.2","v2.8.1","v2.8.0","v2.7.1","v2.7.0","v2.6.4","v2.6.3","v2.6.2","v2.6.1","v2.5.0","v2.4.2","v2.4.1","v2.4.0","v2.3.2","v2.3.1","v2.3.0","v2.2.0","v2.1.5","v2.1.4","v2.1.3","v2.1.2","v2.1.1","v2.1.0","v2.0.1","v2.0.0","v1.2.1","v1.2.0","v1.1.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-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"}]}