md-to-pdf@5.0.0 vulnerabilities

CLI tool for converting Markdown files to PDF.

  • latest version

    5.2.5

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    3 months ago

  • licenses detected

    • >=1.0.0 <2.1.4; >=3.0.0-pre.0
  • Direct Vulnerabilities

    Known vulnerabilities in the md-to-pdf package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • C
    Arbitrary Code Injection

    md-to-pdf is a CLI tool for converting Markdown files to PDF.

    Affected versions of this package are vulnerable to Arbitrary Code Injection via the gray-matter library when parsing front matter containing JavaScript delimiters. An attacker can execute arbitrary code in the Markdown-to-PDF conversion process by supplying specially crafted Markdown files with malicious JavaScript in the front matter.

    How to fix Arbitrary Code Injection?

    Upgrade md-to-pdf to version 5.2.5 or higher.

    <5.2.5