CVE-2017-16876
medium
CVSS v3
6.1
CVSS v4 NEW
โ
VIR risk
6.1
Description
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.
Predictions
Exploit likelihood
71%
Patch ETA
โ
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| debian | bookworm | fixed | 0.8.1-1 |
| debian | bullseye | fixed | 0.8.1-1 |
| debian | forky | fixed | 0.8.1-1 |
| debian | sid | fixed | 0.8.1-1 |
| debian | trixie | fixed | 0.8.1-1 |
| fedora | 26 | affected | |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| mistune_project | mistune | {"endExcluding":"0.8.1"} | 0.8.1 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1524596
- https://github.com/lepture/mistune/blob/master/CHANGES.rst
- https://github.com/lepture/mistune/commit/5f06d724bc05580e7f203db2d4a4905fc1127f98
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NUR3GMHQBMA3UC4PFMCK6GCLOQC4LQQC/
- https://nvd.nist.gov/vuln/detail/CVE-2017-16876
- https://github.com/lepture/mistune
- https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2017-18.yaml
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NUR3GMHQBMA3UC4PFMCK6GCLOQC4LQQC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NUR3GMHQBMA3UC4PFMCK6GCLOQC4LQQC/
- https://github.com/advisories/GHSA-98gj-wwxm-cj3h
- https://security-tracker.debian.org/tracker/CVE-2017-16876
CWEs
CWE-79
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.