Advisory

GHSA-x949-7cm6-fm6p

Also known as: CVE-2021-23639, SNYK-JS-MDTOPDF-1657880

Summary

Code Injection in md-to-pdf.

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-12-16 14:34 UTC
Modified
2026-07-08 06:49 UTC

Affected packages and fixes

md-to-pdf

npm · All systems

Affected

  • introduced 0, fixed 5.0.0 (semver)

Fixed versions

5.0.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences