PyPA Advisory Database
PYSEC-2020-65
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | markdown2 | All versions before 2.3.9 (fixed in 2.3.9) |
References
- https://github.com/trentm/python-markdown2/issues/348
- http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00031.html
- http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00035.html
- https://lists.fedoraproject.org/archives/list/[email protected]/message/AQLRBGRVRRZK7P5SFL2MNGXFX37YHJAV/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/PN6QSHRFZXRQAYZJQ4MOW5MKIXBYOMED/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/6XOAIRJJCZNJUALXDHSIGH5PS2H63A3J/
- https://github.com/advisories/GHSA-fv3h-8x5j-pvgq