{"id":"CVE-2018-5773","aliases":["GHSA-p6h9-gw49-rqm4","PYSEC-2018-13"],"url":"https://o3.security/vulnerability/CVE-2018-5773","summary":"markdown2 is vulnerable to cross-site scripting","details":"An issue was discovered in markdown2 (aka python-markdown2) through 2.3.5. The safe_mode feature, which is supposed to sanitize user input against XSS, is flawed and does not escape the input properly. With a crafted payload, XSS can be triggered, as demonstrated by omitting the final '>' character from an IMG tag.","published":"2018-01-18T21:29:00.267Z","modified":"2026-07-08T16:41:07.183487Z","cvss":{"score":6.1,"severity":"MEDIUM","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},"epss":{"score":0.00819,"percentile":0.54508,"asOf":"2026-08-22"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"markdown2","fixedVersion":"2.3.6"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://github.com/trentm/python-markdown2/issues/285"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-08T16:41:07.183487Z"}}