Live threats

All CVEs / Markdown To Pdf Project

CVE-2021-23639Markdown To Pdf Project Markdown To Pdf

Critical 9.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Markdown To Pdf.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
markdown_to_pdf_projectmarkdown_to_pdf< 5.0.0

Official sources

References

Links published by the sources. Open them with care.