VDB
Sign up
—

PYSEC-2020-65

Quick fix

PYSEC-2020-65 — markdown2: upgrade to the fixed version with the command below.

pip install --upgrade 'markdown2>=2.3.9'

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/markdown2
Introduced in: 0Fixed in: 2.3.9
Fixpip install --upgrade 'markdown2>=2.3.9'

References