{"id":"CVE-2018-3770","aliases":["EUVD-2018-0300","GHSA-p7c9-jqhq-vr3v"],"status":"published","title":"Remote Code Execution in markdown-pdf","description":"A path traversal exists in markdown-pdf version \u003c9.0.0 that allows a user to insert a malicious html code that can result in reading the local files.","severity":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.00501,"percentile":0.43166,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2018-07-20T22:00:00Z","modified":"2026-06-17T01:57:47Z","fixes":[{"ecosystem":"npm","package":"markdown-pdf","fixed_in":["9.0.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"markdown-pdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.0.0"}]}]},{"source":"osv","ecosystem":"npm","package":"markdown-pdf","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"9.0.0"}]}]}],"products":[{"vendor":"hackerone","product":"markdown-pdf"},{"vendor":"markdown-pdf_project","product":"markdown-pdf"}],"references":[{"url":"https://hackerone.com/reports/360727","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-3770","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-p7c9-jqhq-vr3v","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/991","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2018-3770","description":"A path traversal exists in markdown-pdf version \u003c9.0.0 that allows a user to insert a malicious html code that can result in reading the local files.","status":"published","published":"2018-07-20T22:00:00Z","modified":"2024-09-16T16:42:35.385Z","cwes":["CWE-22"],"updated_at":"2026-11-02T14:35:05.619113Z"}],"euvd":[{"id":"EUVD-2018-0300","description":"A path traversal exists in markdown-pdf version \u003c9.0.0 that allows a user to insert a malicious html code that can result in reading the local files.","status":"published","published":"2018-07-20T22:00:00Z","modified":"2024-09-16T16:42:35Z","updated_at":"2026-11-03T00:55:49.07001Z"}],"ghsa":[{"id":"GHSA-p7c9-jqhq-vr3v","title":"Remote Code Execution in markdown-pdf","description":"Versions of `markdown-pdf` prior to 9.0.0 are vulnerable to Remote Code Execution. The package fails to sanitize HTML code in markdown files. If markdown files with malicious HTML are converted to PDF, the resulting PDF file will execute any JavaScript code in the original markdown file. This may allow attackers to execute Remote Code.\n\n\n## Recommendation\n\nUpgrade to version 9.0.0 or later.","status":"published","published":"2018-07-27T17:03:46Z","modified":"2023-03-01T01:36:37Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:36:46.526285Z"}],"nvd":[{"id":"CVE-2018-3770","description":"A path traversal exists in markdown-pdf version \u003c9.0.0 that allows a user to insert a malicious html code that can result in reading the local files.","status":"published","published":"2018-07-20T22:29:00.223Z","modified":"2026-06-17T01:57:47.933Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":2.1,"vector":"AV:L/AC:L/Au:N/C:P/I:N/A:N","level":"low","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:04:33.865124Z"}],"osv":[{"id":"GHSA-p7c9-jqhq-vr3v","title":"Remote Code Execution in markdown-pdf","description":"Versions of `markdown-pdf` prior to 9.0.0 are vulnerable to Remote Code Execution. The package fails to sanitize HTML code in markdown files. If markdown files with malicious HTML are converted to PDF, the resulting PDF file will execute any JavaScript code in the original markdown file. This may allow attackers to execute Remote Code.\n\n\n## Recommendation\n\nUpgrade to version 9.0.0 or later.","status":"published","published":"2018-07-27T17:03:46Z","modified":"2023-11-08T04:00:19.571409Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:52.891208Z"}]}}
