CVE-2018-1000162
MEDIUM 6.1CVSS 3.0Cross-site Scripting in Parsedown
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.
- Published
- 18 Apr 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-qgpv-86r3-87fh
- Sources
- NVDJSONOSV GHSA-qgpv-86r3-87fhJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | parsedown | parsedowncpe:2.3:a:parsedown:parsedown:*:*:*:*:*:*:*:* |
< 1.7.0 | 1.7.0 |
| OSV | Packagist | erusev/parsedown | < 1.7.0 | 1.7.0 |
References
- https://github.com/Roave/SecurityAdvisories/issues/44#issuecomment-368594409 · Third Party Advisory, WEB
- https://github.com/erusev/parsedown/pull/495 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-1000162 · ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/erusev/parsedown/CVE-2018-1000162.yaml · WEB
- https://github.com/erusev/parsedown · PACKAGE
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 18 Apr 2018)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 30 Mar 2022)