{"cve":"CVE-2018-5773","nvd":{"published":"2018-01-18T21:29:00.267","modified":"2026-06-17T02:00:45.443","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://github.com/trentm/python-markdown2/issues/285","https://github.com/trentm/python-markdown2/issues/285"],"products":["python-markdown2_project:python-markdown2"],"source":"nvd","synced_at":"2026-10-19T20:48:34.567387330+00:00"},"epss":{"cve":"CVE-2018-5773","score":0.00819,"percentile":0.57214,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-p6h9-gw49-rqm4","url":"https://osv.dev/vulnerability/GHSA-p6h9-gw49-rqm4","summary":"markdown2 is vulnerable to cross-site scripting","modified":"2024-09-30T17:23:16.991720Z","packages":[{"ecosystem":"PyPI","name":"markdown2","purl":"pkg:pypi/markdown2","ranges":["<2.3.6"],"fixed":["2.3.6"]}]},{"id":"PYSEC-2018-13","url":"https://osv.dev/vulnerability/PYSEC-2018-13","summary":"","modified":"2023-11-08T04:00:20.840570Z","packages":[{"ecosystem":"PyPI","name":"markdown2","purl":"pkg:pypi/markdown2","ranges":["<2.3.6"],"fixed":["2.3.6"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}