MEDIUM6.1
PYSEC-2017-18
Quick fix
PYSEC-2017-18 — mistune: upgrade to the fixed version with the command below.
pip install --upgrade 'mistune>=5f06d724bc05580e7f203db2d4a4905fc1127f98'Details
Cross-site scripting (XSS) vulnerability in the _keyify function in mistune.py in Mistune before 0.8.1 allows remote attackers to inject arbitrary web script or HTML by leveraging failure to escape the "key" argument.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/mistune
Introduced in:
0Fixed in: 5f06d724bc05580e7f203db2d4a4905fc1127f98Fix
pip install --upgrade 'mistune>=5f06d724bc05580e7f203db2d4a4905fc1127f98'References
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NUR3GMHQBMA3UC4PFMCK6GCLOQC4LQQC/[WEB]
- https://github.com/lepture/mistune/commit/5f06d724bc05580e7f203db2d4a4905fc1127f98[FIX]
- https://github.com/lepture/mistune/blob/master/CHANGES.rst[WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=1524596[REPORT]
- https://github.com/advisories/GHSA-98gj-wwxm-cj3h[ADVISORY]