{"id":"CVE-2018-20583","details":"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).","aliases":["GHSA-qx76-c53f-5c7q"],"modified":"2026-07-08T19:45:20.174450Z","published":"2018-12-30T05:29:00.753Z","references":[{"type":"ADVISORY","url":"https://commonmark.thephpleague.com/changelog/"},{"type":"ADVISORY","url":"https://github.com/thephpleague/commonmark/releases/tag/0.18.1"},{"type":"EVIDENCE","url":"https://github.com/thephpleague/commonmark/issues/337"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/thephpleague/commonmark","events":[{"introduced":"91742543c25fecedc84a4883d2919213e04a73b7"},{"last_affected":"006af077d4b1b7eb1d9760964f9f984ba188632c"},{"fixed":"e5029f74ba39e043ce4b3ca6c05dc719d8aafd94"}],"database_specific":{"cpe":"cpe:2.3:a:thephpleague:commonmark:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0.15.6"},{"last_affected":"0.18.0"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["0.18.0","0.17.4","0.17.2","0.17.0","0.16.0","0.15.7","0.15.6"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-20583.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}