CVE-2018-3770:
Remote Code Execution in markdown-pdf
5.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.50281%
CWE
Published
7/27/2018
Updated
3/1/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
markdown-pdf | npm | < 9.0.0 | 9.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from markdown-pdf enabling HTML rendering in its Remarkable parser by default. The key change in the patch removes the 'html: true' default in the options object passed to Remarkable. The markdownpdf
function in index.js
is directly responsible for this insecure configuration. During exploitation, this function would appear in the profiler as it sets up the processing pipeline with vulnerable defaults. While the actual HTML rendering occurs in Remarkable's code, the root cause is markdownpdf
's configuration, which is explicitly modified in the patch.