CVE-2021-23639

CRITICAL

Markdown TO Pdf < 5.0.0 - Remote Code Execution

Title source: rule

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.

Exploits (1)

nomisec WORKING POC
by MohandAcherir · poc
https://github.com/MohandAcherir/CVE-2021-23639

Scores

CVSS v3 9.8
EPSS 0.1991
EPSS Percentile 95.5%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

Status published
Products (2)
markdown_to_pdf_project/markdown_to_pdf < 5.0.0
npm/md-to-pdf 0 - 5.0.0npm
Published Dec 10, 2021
Tracked Since Feb 18, 2026