Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS14OTQ5LTdjbTYtZm02cM0avQ
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.
Permalink: https://github.com/advisories/GHSA-x949-7cm6-fm6pJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS14OTQ5LTdjbTYtZm02cM0avQ
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: over 2 years ago
Updated: over 1 year ago
CVSS Score: 9.8
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Identifiers: GHSA-x949-7cm6-fm6p, CVE-2021-23639
References:
- https://nvd.nist.gov/vuln/detail/CVE-2021-23639
- https://github.com/simonhaenisch/md-to-pdf/issues/99
- https://github.com/simonhaenisch/md-to-pdf/commit/a716259c548c82fa1d3b14a3422e9100619d2d8a
- https://snyk.io/vuln/SNYK-JS-MDTOPDF-1657880
- https://github.com/advisories/GHSA-x949-7cm6-fm6p
Blast Radius: 22.5
Affected Packages
npm:md-to-pdf
Dependent packages: 29Dependent repositories: 199
Downloads: 49,907 last month
Affected Version Ranges: < 5.0.0
Fixed in: 5.0.0
All affected versions: 1.0.0, 1.0.1, 1.0.2, 1.1.0, 2.1.4, 2.1.5, 2.2.0, 2.3.0, 2.3.1, 2.3.2, 2.4.0, 2.4.1, 2.4.2, 2.5.0, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.7.0, 2.7.1, 2.8.0, 2.8.1, 2.8.2, 3.0.0, 3.0.1, 3.1.0, 3.1.1, 3.1.2, 3.2.1, 3.3.0, 3.3.1, 3.3.2, 4.0.0, 4.0.1, 4.1.0
All unaffected versions: 5.0.0, 5.0.1, 5.0.2, 5.1.0, 5.2.0, 5.2.1, 5.2.2, 5.2.3, 5.2.4