CVE-2021-23639

Source
https://cve.org/CVERecord?id=CVE-2021-23639
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23639.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-23639
Aliases
Related
  • SNYK-JS-MDTOPDF-1657880
Published
2021-12-10T20:15:08.387Z
Modified
2026-03-15T21:45:10.481036Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
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.

References

Affected packages

Git / github.com/simonhaenisch/md-to-pdf

Affected ranges

Type
GIT
Repo
https://github.com/simonhaenisch/md-to-pdf
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "5.0.0"
        }
    ]
}

Affected versions

v1.*
v1.1.0
v1.2.0
v1.2.1
v2.*
v2.0.0
v2.0.1
v2.1.0
v2.1.1
v2.1.2
v2.1.3
v2.1.4
v2.1.5
v2.2.0
v2.3.0
v2.3.1
v2.3.2
v2.4.0
v2.4.1
v2.4.2
v2.5.0
v2.6.1
v2.6.2
v2.6.3
v2.6.4
v2.7.0
v2.7.1
v2.8.0
v2.8.1
v2.8.2
v3.*
v3.0.0
v3.0.0-pre.0
v3.0.0-pre.1
v3.0.1
v3.1.0
v3.1.1
v3.1.2
v3.2.0
v3.2.1
v3.3.0
v3.3.1
v3.3.2
v4.*
v4.0.0
v4.0.1
v4.1.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23639.json"