Advisories for Pypi/Markdown2 package

2021
2020

Cross-site Scripting

python-markdown2 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.

2018

Cross-site Scripting

An issue was discovered in markdown. 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, an XSS can be triggered by omitting the final > character from an IMG tag.