CVE-2021-23639
9.8critical
Remote Code Execution (RCE)
- Severity
- 9.8critical CVSS:3.1 by snyk
- Exploit likelihood
- 5.41% (higher than 92% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-x949-7cm6-fm6pSNYK-JS-MDTOPDF-1657880
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| md-to-pdf | from unspecified before 5.0.0 | CVE List |
| md-to-pdf (npm) | before 5.0.0 | GitHub Advisory Database |
| markdown_to_pdf_project markdown_to_pdf | before 5.0.0 | NVD |
All scores
| snyk | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
El paquete md-to-pdf versiones anteriores a 5.0.0, es vulnerable a una Ejecución de Código Remota (RCE) debido al uso de la biblioteca gray-matter para analizar el contenido del front matter, sin deshabilitar el motor JS
References
| https://snyk.io/vuln/SNYK-JS-MDTOPDF-1657880 | exploit, patch, third-party-advisory, web | |
| https://github.com/simonhaenisch/md-to-pdf/issues/99 | exploit, issue-tracking, patch, third-party-advisory, web | |
| https://github.com/simonhaenisch/md-to-pdf/commit/a716259c548c82fa1d3b14a3422e9100619d2d8a | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-23639 | advisory | |
| https://github.com/simonhaenisch/md-to-pdf | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-23639 changed 2024-09-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-x949-7cm6-fm6p changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-23639 changed 2026-06-17 | Public domain |