{"id":"GHSA-x949-7cm6-fm6p","revision":"2984330ead5c4d1d9a601ba85cbdced7","records":[{"revision":"2984330ead5c4d1d9a601ba85cbdced7","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-x949-7cm6-fm6p","aliases":["CVE-2021-23639","SNYK-JS-MDTOPDF-1657880"],"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.","state":0,"publishedAt":"2021-12-16T14:34:40+00:00","modifiedAt":"2026-07-08T06:49:43.1517047+00:00","affected":[{"ecosystem":"npm","name":"md-to-pdf","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"5.0.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2021-23639","https://github.com/simonhaenisch/md-to-pdf/issues/99","https://github.com/simonhaenisch/md-to-pdf/commit/a716259c548c82fa1d3b14a3422e9100619d2d8a","https://github.com/simonhaenisch/md-to-pdf","https://snyk.io/vuln/SNYK-JS-MDTOPDF-1657880"],"sourceUrl":"https://github.com/advisories/GHSA-x949-7cm6-fm6p","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-x949-7cm6-fm6p","identifiers":["GHSA-x949-7cm6-fm6p","CVE-2021-23639","SNYK-JS-MDTOPDF-1657880"]},"retained":false,"historicalAffected":[]}],"coverage":[]}