# CVE-2018-1000162: Cross-site Scripting in Parsedown

- Severity: Medium 6.1 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.16%, higher than 68% of CVEs (2026-12-01)
- Published: 2018-04-18T19:00:00.000Z
- Modified: 2026-06-17T01:32:33.907Z
- Also known as: GHSA-qgpv-86r3-87fh
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- erusev/parsedown (Packagist): before 1.7.0
- parsedown parsedown: before 1.7.0

## Every score

- GitHub: CVSS:3.0 6.1 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.0 6.1 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## 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)

## Sources

- CVE List: [CVE-2018-1000162](https://www.cve.org/CVERecord?id=CVE-2018-1000162), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-qgpv-86r3-87fh](https://github.com/advisories/GHSA-qgpv-86r3-87fh), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2018-1000162](https://nvd.nist.gov/vuln/detail/CVE-2018-1000162), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2018-1000162 · Whole record: https://cve.day/CVE-2018-1000162.json · Rebuilt by cve.day 2026-11-25T22:57:37.282Z
