原始 OSV JSON{
"id": "GHSA-x949-7cm6-fm6p",
"aliases": [
"CVE-2021-23639"
],
"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.",
"summary": "Code Injection in md-to-pdf.",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "5.0.0"
}
]
}
],
"package": {
"name": "md-to-pdf",
"ecosystem": "npm"
}
}
],
"modified": "2021-12-15T15:22:46Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"published": "2021-12-16T14:34:40Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-23639",
"type": "ADVISORY"
},
{
"url": "https://github.com/simonhaenisch/md-to-pdf/issues/99",
"type": "WEB"
},
{
"url": "https://github.com/simonhaenisch/md-to-pdf/commit/a716259c548c82fa1d3b14a3422e9100619d2d8a",
"type": "WEB"
},
{
"url": "https://github.com/simonhaenisch/md-to-pdf",
"type": "PACKAGE"
},
{
"url": "https://snyk.io/vuln/SNYK-JS-MDTOPDF-1657880",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"severity": "CRITICAL",
"github_reviewed": true,
"nvd_published_at": "2021-12-10T20:15:00Z",
"github_reviewed_at": "2021-12-14T14:31:35Z"
}
}