# CVE-2019-10905: Parsedown Class-Name Injection

- Severity: High 8.1 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- 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.47%, higher than 74% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2019-04-06T19:59:55.000Z
- Modified: 2026-06-17T02:11:52.123Z
- Also known as: GHSA-62m3-fc7f-jpp8
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

Parsedown before 1.7.2, when safe mode is used and HTML markup is disabled, might allow attackers to execute arbitrary JavaScript code if a script (already running on the affected page) executes the contents of any element with a specific class. This occurs because spaces are permitted in code block infostrings, which interferes with the intended behavior of a single class name beginning with the language- substring.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub: CVSS:3.0 8.1 High `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.0 8.1 High `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/erusev/parsedown/issues/699> (exploit, issue-tracking, third-party-advisory, web)
- <https://github.com/erusev/parsedown/releases/tag/1.7.2> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-10905> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/erusev/parsedown/CVE-2019-10905.yaml> (web)
- <https://github.com/erusev/parsedown> (package)

## Sources

- CVE List: [CVE-2019-10905](https://www.cve.org/CVERecord?id=CVE-2019-10905), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-62m3-fc7f-jpp8](https://github.com/advisories/GHSA-62m3-fc7f-jpp8), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2019-10905](https://nvd.nist.gov/vuln/detail/CVE-2019-10905), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-10905 · Whole record: https://cve.day/CVE-2019-10905.json · Rebuilt by cve.day 2026-11-25T22:57:44.289Z
