GHSA-x949-7cm6-fm6p
Dashboard / Vulnerabilities / GHSA-x949-7cm6-fm6p
GHSA-x949-7cm6-fm6p
Published: 16 Dec 2021Last Modified: 8 Jul 2026
Summary: Code Injection in md-to-pdf.
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.
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
Affected packages
Package
Name: md-to-pdf
Purl: pkg:npm/md-to-pdf
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -5.0.0
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
