Security mailing lists by PureSourceCode

CVE-2021-23639

CRITICAL 9.8CVSS 3.1

Code Injection in md-to-pdf.

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.

Published
10 Dec 2021
Last modified
8 Jul 2026
Assigned by
report@snyk.io
NVD status
Modified
Weakness
CWE-94
Also known as
GHSA-x949-7cm6-fm6pSNYK-JS-MDTOPDF-1657880
Sources
NVDJSONOSV GHSA-x949-7cm6-fm6pJSON

Scores

SourceScored byVersionScoreVector / decision
NVD report@snyk.io (Secondary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD markdown_to_pdf_project markdown_to_pdf
cpe:2.3:a:markdown_to_pdf_project:markdown_to_pdf:*:*:*:*:*:node.js:*:*
< 5.0.0 5.0.0
OSV npm md-to-pdf < 5.0.0 5.0.0

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 10 Dec 2021)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 16 Dec 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.