CVE-2018-20583
MEDIUM 6.1CVSS 3.0PHP League CommonMark vulnerable to Cross-Site Scripting (XSS)
Cross-site scripting (XSS) vulnerability in the PHP League CommonMark library versions 0.15.6 through 0.18.x before 0.18.1 allows remote attackers to insert unsafe URLs into HTML (even if allow_unsafe_links is false) via a newline character (e.g., writing javascript as javascri%0apt).
- Published
- 30 Dec 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-qx76-c53f-5c7q
- Sources
- NVDJSONOSV GHSA-qx76-c53f-5c7qJSON
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 | thephpleague | commonmarkcpe:2.3:a:thephpleague:commonmark:*:*:*:*:*:*:*:* |
>= 0.15.6, <= 0.18.0 | |
| OSV | Packagist | league/commonmark | >= 0.15.6, < 0.18.1 | 0.18.1 |
References
- https://commonmark.thephpleague.com/changelog/ · Release Notes, Third Party Advisory, WEB
- https://github.com/thephpleague/commonmark/issues/337 · Exploit, Third Party Advisory, WEB
- https://github.com/thephpleague/commonmark/releases/tag/0.18.1 · Release Notes, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-20583 · ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/league/commonmark/CVE-2018-20583.yaml · WEB
- https://github.com/thephpleague/commonmark · PACKAGE
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 30 Dec 2018)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 14 May 2022)