Skip to content
OpenAdvisories
Medium · 6.1 CVE-2018-5773 EUVD-2018-0089GHSA-p6h9-gw49-rqm4PYSEC-2018-13

markdown2 is vulnerable to cross-site scripting

Published Jan 18, 2018 · Updated Sep 16, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-markdown2 2.4.0-2.4 openSUSE-SU-2026:12016-1, openSUSE-SU-2024:14146-1, openSUSE-SU-2024:11237-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI markdown2 < 2.3.6 2.3.6 GHSA-p6h9-gw49-rqm4

Advisories 3

References