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.
Remediation
References
https://github.com/simonhaenisch/md-to-pdf/commit/a716259c548c82fa1d3b14a3422e9100619d2d8a
https://snyk.io/vuln/SNYK-JS-MDTOPDF-1657880
https://github.com/simonhaenisch/md-to-pdf/issues/99
Related Vulnerabilities
CVE-2020-28360 Vulnerability in npm package private-ip
CVE-2020-7642 Vulnerability in maven package org.webjars.bower:lazysizes
CVE-2020-15138 Vulnerability in maven package org.webjars:prismjs
CVE-2019-16869 Vulnerability in maven package io.netty:netty-all
CVE-2022-31108 Vulnerability in maven package org.webjars.npm:mermaid