{"id":"CVE-2018-20583","published":"2018-12-30T05:00:00Z","modified":"2024-09-16T21:57:28Z","title":"Cross-site scripting (XSS) vulnerability in the PHP League CommonMark library versions 0.15.6 through 0.18.x before…","vendor":null,"product":null,"tier":"tail","description":{"text":"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).","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01863,"percentile":0.79787,"provenance":"source"},"cwes":[],"references":[{"url":"https://commonmark.thephpleague.com/changelog/","tags":["x_refsource_MISC"]},{"url":"https://github.com/thephpleague/commonmark/issues/337","tags":["x_refsource_MISC"]},{"url":"https://github.com/thephpleague/commonmark/releases/tag/0.18.1","tags":["x_refsource_MISC"]}],"priority":{"score":16.0,"factors":[{"name":"EPSS percentile","points":15.96}]},"affected":[{"ecosystem":"Packagist","package":"league/commonmark","vulnerableRanges":[">=0.15.6, <0.18.1"],"patched":["0.18.1"],"from":["GHSA-qx76-c53f-5c7q"],"provenance":"source"}],"summary":{"text":"The PHP League CommonMark library, versions 0.15.6 through 0.18.x before 0.18.1, contains a cross-site scripting flaw in how it handles links, allowing unsafe URLs to be inserted into rendered HTML even when allow_unsafe_links is set to false. An remote attacker can exploit this by supplying Markdown content containing a newline character inside a URL scheme (for example, splitting \"javascript\" as \"javascri%0apt\") with no authentication or user interaction stated as required beyond the victim rendering that content.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:43Z"},"euvd":{"id":"EUVD-2022-5057","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2018-20583","published":"2018-12-30","fixed":"0.18.1","kev":false},{"cve":"CVE-2019-10010","published":"2019-03-24","fixed":"0.18.3","kev":false,"link":{"from":"CVE-2018-20583","to":"CVE-2019-10010","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:league/commonmark","fromFixed":"0.18.1","toFixed":"0.18.3","daysApart":84}]}},{"cve":"CVE-2025-46734","published":"2025-05-05","fixed":"2.7.0","kev":false},{"cve":"CVE-2026-30838","published":"2026-03-07","fixed":"2.8.1","kev":false}],"package":"Packagist:league/commonmark"}}