Remote code execution (RCE) in md-to-pdf
Priority MEDIUM 50CWE-94Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
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.
Why it matters now
EPSS 0.05413 92nd percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed md-to-pdf: 5.0.0md-to-pdf (npm): 5.0.0
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | md-to-pdf | before 5.0.0 | 5.0.0 | Patch available | CNA |
| — | md-to-pdf (npm) | before 5.0.0 | 5.0.0 | Patch available | GHSA-x949-7cm6-fm6p |
- md-to-pdf Vendor— Affected before 5.0.0 Fixed in 5.0.0 Patch available CNA
- md-to-pdf (npm) Vendor— Affected before 5.0.0 Fixed in 5.0.0 Patch available GHSA-x949-7cm6-fm6p
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:markdown_to_pdf_project:markdown_to_pdf:*:*:*:*:*:node.js:*:* | before 5.0.0 | Vulnerable | Markdown To Pdf Project |
- cpe:2.3:a:markdown_to_pdf_project:markdown_to_pdf:*:*:*:*:*:node.js:*:* Versions before 5.0.0 Vulnerable ·Markdown To Pdf Project
Remediation
- Fix · CNA md-to-pdf Fixed in 5.0.0
- Fix · GHSA-x949-7cm6-fm6p md-to-pdf (npm) Fixed in 5.0.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-23639
- 2026-10-03 Alias added: GHSA-x949-7cm6-fm6p
References
Sources
- CVE-2021-23639 · CVE Program
- CVE-2021-23639 · NVD
- FIRST EPSS
- GHSA-x949-7cm6-fm6p · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences