{"id":"CVE-2018-5773","published":"2018-01-18T21:00:00Z","modified":"2024-09-16T17:47:46Z","title":"An issue was discovered in markdown2 (aka python-markdown2) through 2.3.5","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00819,"percentile":0.58096,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/trentm/python-markdown2/issues/285","tags":["x_refsource_MISC"]}],"priority":{"score":11.6,"factors":[{"name":"EPSS percentile","points":11.62}]},"affected":[{"ecosystem":"PyPI","package":"markdown2","vulnerableRanges":["<2.3.6"],"patched":["2.3.6"],"from":["GHSA-p6h9-gw49-rqm4","PYSEC-2018-13"],"provenance":"source"}],"summary":{"text":"The flaw lies in the safe_mode feature of markdown2 (also known as python-markdown2), through version 2.3.5, which is meant to sanitize user input against cross-site scripting but fails to escape it properly.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:05:39Z"},"euvd":{"id":"EUVD-2018-0089","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-markdown2-cve-2018-5773","children":[{"from":"CVE-2018-5773","to":"CVE-2021-26813","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/markdown2.py"],"commits":["https://github.com/trentm/python-markdown2/commit/1b1dcdd727c0ef03453b9f5ef5ae3679f1d72323","https://github.com/trentm/python-markdown2/commit/7b651260739647de5198323e0445b1618750c374"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.42,"basis":"same package + description similarity"}]}]}}