CVE-2025-65108

Source
https://cve.org/CVERecord?id=CVE-2025-65108
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-65108.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-65108
Aliases
Published
2025-11-21T21:52:02.729Z
Modified
2026-03-14T12:45:44.127778Z
Severity
  • 10.0 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
md-to-pdf is vulnerable to arbitrary JavaScript code execution when parsing front matter
Details

md-to-pdf is a CLI tool for converting Markdown files to PDF using Node.js and headless Chrome. Prior to version 5.2.5, a Markdown front-matter block that contains JavaScript delimiter causes the JS engine in gray-matter library to execute arbitrary code in the Markdown to PDF converter process of md-to-pdf library, resulting in remote code execution. This issue has been patched in version 5.2.5.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-94"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/65xxx/CVE-2025-65108.json"
}
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

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
v5.*
v5.0.0
v5.0.1
v5.0.2
v5.1.0
v5.2.0
v5.2.1
v5.2.2
v5.2.3
v5.2.4

Database specific

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