CVE-2018-1000162Parsedown
Medium 6.1 No auth needed
Follow: this CVE · Parsedown · Parsedown We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.0
- 6.1
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 68
- Auth required
- No
- Published
- Apr 18, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
Parsedown version prior to 1.7.0 contains a Cross Site Scripting (XSS) vulnerability in `setMarkupEscaped` for escaping HTML that can result in JavaScript code execution. This attack appears to be exploitable via specially crafted markdown that allows it to side step HTML escaping by breaking AST boundaries. This vulnerability appears to have been fixed in 1.7.0 and later.
What to do
- Apply the vendor's security update for Parsedown.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | erusev/parsedown |
< 1.7.0 |
1.7.0 |
composer require "erusev/parsedown:^1.7.0" |
Per OSV / GitHub Advisories (GHSA-qgpv-86r3-87fh). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| parsedown | parsedown | < 1.7.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- github.com Third Party Advisory