Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
PHP League CommonMark versions 0.15.6 through 0.18.x, before 0.18.1, are vulnerable to cross-site scripting. A remote attacker can insert unsafe URLs into HTML by placing a newline character inside a URL, even when allow_unsafe_links is false. Upgrade to league/commonmark 0.18.1.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 6.1 | Medium | 3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | GitHub Advisory Database |
- CISA KEV Not listed.
- EPSS 0.019, the 79th percentile, on 26 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:31 UTC First seen by agentprime
- 31 Oct 2026, 14:31 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-qx76-c53f-5c7q
- OSV: GHSA-qx76-c53f-5c7q
- nvd.nist.gov/vuln/detail/CVE-2018-20583
- github.com/thephpleague/commonmark/issues/337
- commonmark.thephpleague.com/changelog
- github.com/FriendsOfPHP/security-advisories/blob/master/league/commonmark/CVE-2018-20583.yaml
- github.com/thephpleague/commonmark
- github.com/thephpleague/commonmark/releases/tag/0.18.1