All CVEs / Markdown To Pdf Project
CVE-2021-23639Markdown To Pdf Project Markdown To Pdf
Critical 9.8 No auth needed
Follow: this CVE · Markdown To Pdf Project · Markdown To Pdf Project Markdown To Pdf We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 5.4% probability of exploitation in 30 days · percentile 93
- Auth required
- No
- Published
- Dec 10, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Markdown To Pdf.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | md-to-pdf |
< 5.0.0 |
5.0.0 |
npm install md-to-pdf@5.0.0 |
Per OSV / GitHub Advisories (GHSA-x949-7cm6-fm6p). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| markdown_to_pdf_project | markdown_to_pdf | < 5.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Exploit Issue Tracking Patch
- snyk.io Exploit Patch Third Party Advisory