ADVISORIES

Vulnerability

CVE-2018-5773

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.

5 advisories report this vulnerability, across 2 ecosystems.

Medium severity All openSUSE 3PyPI 2

Advisories

  • GHSA-p6h9-gw49-rqm4

    markdown2 is vulnerable to cross-site scripting

    Moderate CVE-2018-5773 PyPI Updated 30 September 2024
  • PYSEC-2018-13

    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…

    CVE-2018-5773 PyPI Updated 8 November 2023
  • openSUSE-SU-2024:11237-1

    python36-markdown2-2.4.0-2.4 on GA media

    CVE-2018-5773CVE-2021-26813 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:14146-1

    python310-markdown2-2.4.13-1.2 on GA media

    CVE-2018-5773CVE-2021-26813 openSUSE Updated 4 February 2026
  • openSUSE-SU-2026:12016-1

    python313-markdown2-2.5.5-1.3 on GA media

    CVE-2018-5773CVE-2021-26813 openSUSE Updated 5 October 2026

References