GitHub Advisoryadvisory · npm
GHSA-x949-7cm6-fm6p Code Injection in md-to-pdf.
CRITICAL
Official page ↗
- Aliases
- CVE-2021-23639
- Ecosystem
- npm
- Packages
- md-to-pdf
- Severity
- Critical
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-94
- Reviewed
- 2021-12-14
Affected packages
• npm md-to-pdf: < 5.0.0 → fixed in 5.0.0
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.
Related
Alias · CVE (1)
- CVE-2021-23639 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… vulnerability
Weakness · CWE (1)
- CWE-94 Improper Control of Generation of Code weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-23639 advisory
- https://github.com/simonhaenisch/md-to-pdf/issues/99 web
- https://github.com/simonhaenisch/md-to-pdf/commit/a716259c548c82fa1d3b14a3422e9100619d2d8a web
- https://github.com/simonhaenisch/md-to-pdf package
- https://snyk.io/vuln/SNYK-JS-MDTOPDF-1657880 web