Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2021-23639 EUVD-2021-2610GHSA-x949-7cm6-fm6pSNYK-JS-MDTOPDF-1657880

Remote Code Execution (RCE)

Published Dec 10, 2021 · Updated Sep 17, 2024 · Assigned by snyk

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.

Affected products

VendorProductAffectedFixed
— md-to-pdf unspecified – < 5.0.0 5.0.0

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm md-to-pdf < 5.0.0 5.0.0 GHSA-x949-7cm6-fm6p

References