Skip to content
OpenAdvisories
Medium · 6.1 CVE-2020-11888 EUVD-2020-0105GHSA-fv3h-8x5j-pvgqPYSEC-2020-65

XSS in python-markdown2

Published Apr 20, 2020 · Updated Aug 4, 2024 · Assigned by mitre

Description

python-markdown2 through 2.3.8 allows XSS because element names are mishandled unless a \w+ match succeeds. For example, an attack might use elementname@ or elementname- with an onclick attribute.

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
Debian 14 python-markdown2 2.3.9-1 —
Debian 13 python-markdown2 2.3.9-1 —
Debian 12 python-markdown2 2.3.9-1 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS python-markdown2 No fix yet —
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP1 python-markdown2 2.3.7-bp151.2.3.1 openSUSE-SU-2020:0656-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.1 python-markdown2 2.3.7-lp151.2.3.1 openSUSE-SU-2020:0651-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI markdown2 < 2.3.9 2.3.9 GHSA-fv3h-8x5j-pvgq

Advisories 2

References