GHSA-p7c9-jqhq-vr3v
Dashboard / Vulnerabilities / GHSA-p7c9-jqhq-vr3v
Summary: Remote Code Execution in markdown-pdf
Details: 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. ## Recommendation Upgrade to version 9.0.0 or later.
References: https://nvd.nist.gov/vuln/detail/CVE-2018-3770, https://hackerone.com/reports/360727, https://github.com/advisories/GHSA-p7c9-jqhq-vr3v, https://www.npmjs.com/advisories/991
Affected packages
Package
Name: markdown-pdf
Purl: pkg:npm/markdown-pdf
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -9.0.0
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
