Read the docs
TI-2021-06174 Aliases CVE-2021-23639GHSA-x949-7cm6-fm6p

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

VendorProductAffected versionsFixed inStatusSource
—md-to-pdfbefore 5.0.05.0.0Patch availableCNA
—md-to-pdf (npm)before 5.0.05.0.0Patch availableGHSA-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

CPEVersionsRoleVendor
cpe:2.3:a:markdown_to_pdf_project:markdown_to_pdf:*:*:*:*:*:node.js:*:*before 5.0.0VulnerableMarkdown 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

  1. 2026-10-02 Threatist record created from CVE-2021-23639
  2. 2026-10-03 Alias added: GHSA-x949-7cm6-fm6p

References

Sources