# CVE-2018-1000874: PHP cebe markdown parser version 1.2.0 and earlier contains a Cross Site Scripting (XSS) vulnerability in all distributed parsers allowing…

- Severity: Medium 6.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/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): 0.80%, higher than 57% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2018-12-20T17:00:00.000Z
- Modified: 2026-06-17T01:33:13.763Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## Description

PHP cebe markdown parser version 1.2.0 and earlier contains a Cross Site Scripting (XSS) vulnerability in all distributed parsers allowing a malicious crafted script to be executed that can result in the lose of user data and sensitive user information. This attack can be exploited by crafting a three backtick wrapped payload with a character in front: L: "```<script>alert();</script>```". NOTE: This has been argued as a non-issue (see references) since it is not the parser's job to sanitize malicious code from a parsed document

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- cebe markdown: up to 1.2.0

## Every score

- CISA-ADP: CVSS:3.1 6.1 Medium `CVSS:3.1/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/cebe/markdown/issues/166> (exploit, issue-tracking, third-party-advisory)
- <https://github.com/cebe/markdown/issues/166#issuecomment-508230493>

## Sources

- CVE List: [CVE-2018-1000874](https://www.cve.org/CVERecord?id=CVE-2018-1000874), CVE Terms of Use, modified 2025-05-06
- NVD: [CVE-2018-1000874](https://nvd.nist.gov/vuln/detail/CVE-2018-1000874), Public domain, modified 2026-06-17

---

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