{"id":"CVE-2018-5773","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 '\u003e' character from an IMG tag.","aliases":["GHSA-p6h9-gw49-rqm4","PYSEC-2018-13"],"modified":"2026-03-14T09:30:01.976607Z","published":"2018-01-18T21:29:00.267Z","related":["openSUSE-SU-2024:11237-1","openSUSE-SU-2024:14146-1"],"references":[{"type":"ADVISORY","url":"https://github.com/trentm/python-markdown2/issues/285"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/trentm/python-markdown2","events":[{"introduced":"0"},{"last_affected":"9be8b9c2801e7f7d07b67e00ff51a15f21c61422"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"2.3.5"}]}}],"versions":["1.0.1.18","1.0.1.19","1.1.0","1.1.1","1.2.0","1.3.0","1.3.1","1.4.0","1.4.1","1.4.2","2.0.0","2.0.1","2.1.0","2.2.0","2.2.1","2.2.2","2.2.3","2.3.0","2.3.1","2.3.2","2.3.3","2.3.4","2.3.5"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-5773.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"}]}