GitHub Advisoryadvisory · npm

GHSA-x949-7cm6-fm6p Code Injection in md-to-pdf.

CRITICAL Published 2021-12-16 Modified 2021-12-15 Official page ↗
Aliases
CVE-2021-23639
Ecosystem
npm
Packages
md-to-pdf
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-94
Reviewed
2021-12-14

Affected packages

• npm md-to-pdf: < 5.0.0 → fixed in 5.0.0

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.

Related

Alias · CVE (1)

  • CVE-2021-23639 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… vulnerability

Weakness · CWE (1)

  • CWE-94 Improper Control of Generation of Code weakness

References