CVEvulnerability
CVE-2021-23639
9.8 CRITICAL
Official page ↗
- Status
- Modified
- Published
- 2021-12-10
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 9.8 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS 3.1 ([email protected])
- 9.8 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS 2.0 ([email protected])
- 7.5 HIGH — AV:N/AC:L/Au:N/C:P/I:P/A:P
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 configurations
• markdown to pdf project markdown to pdf (< 5.0.0)
References
- https://github.com/simonhaenisch/md-to-pdf/commit/a716259c548c82fa1d3b14a3422e9100619d2d8a Patch, Third Party Advisory
- https://github.com/simonhaenisch/md-to-pdf/issues/99 Exploit, Issue Tracking, Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-MDTOPDF-1657880 Exploit, Patch, Third Party Advisory
- https://github.com/simonhaenisch/md-to-pdf/commit/a716259c548c82fa1d3b14a3422e9100619d2d8a Patch, Third Party Advisory
- https://github.com/simonhaenisch/md-to-pdf/issues/99 Exploit, Issue Tracking, Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-MDTOPDF-1657880 Exploit, Patch, Third Party Advisory