CVE-2019-10905
HIGH 8.1CVSS 3.0Parsedown Class-Name Injection
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.
- Published
- 6 Apr 2019
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-62m3-fc7f-jpp8
- Sources
- NVDJSONOSV GHSA-62m3-fc7f-jpp8JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 8.1 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 8.1 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | parsedown | parsedowncpe:2.3:a:parsedown:parsedown:*:*:*:*:*:*:*:* |
< 1.7.2 | 1.7.2 |
| OSV | Packagist | erusev/parsedown | < 1.7.2 | 1.7.2 |
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
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 6 Apr 2019)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 26 Mar 2022)