6.1med
CVE-2017-16876
mistune Cross-site scripting (XSS) vulnerability
Also known as GHSA-98gj-wwxm-cj3h, PYSEC-2017-18
Published 8 y ago · modified 4 mo ago · JSON
CVSS
6.1
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
2.2%
percentile 83%
Public exploits
0
none known
Summary
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.
Exploit prediction (EPSS)
2.23% probability of exploitation in the next 30 days, higher than 83% of all scored CVEs.
CVSS scores
| Assigned by | Version | Score | Vector |
|---|---|---|---|
| NVD | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pypi | mistune | <0.8.1 | 0.8.1 |
Classification
- Weakness
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
- github.com /lepture/mistune/blob/master/CHANGES.rst · x_refsource_CONFIRM, x_transferred
- lists.fedoraproject.org /archives/list/package-announce%40lists.fedoraproject.org/message/NUR3GMHQBMA3UC4PFMCK6GCL · vendor-advisory, x_refsource_FEDORA, x_transferred
- github.com /lepture/mistune/commit/5f06d724bc05580e7f203db2d4a4905fc1127f98 · x_refsource_CONFIRM, x_transferred
- bugzilla.redhat.com /show_bug.cgi?id=1524596 · x_refsource_CONFIRM, x_transferred
- nvd.nist.gov /vuln/detail/CVE-2017-16876 · advisory
- github.com /lepture/mistune · package
- github.com /pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2017-18.yaml · web
- lists.fedoraproject.org /archives/list/package-announce@lists.fedoraproject.org/message/NUR3GMHQBMA3UC4PFMCK6GCLOQ · web
- lists.fedoraproject.org /archives/list/package-announce@lists.fedoraproject.org/message/NUR3GMHQBMA3UC4PFMCK6GCLOQ · web
- github.com /advisories/GHSA-98gj-wwxm-cj3h · advisory
Sources
- CVE List: CVE-2017-16876
- GitHub Advisory: GHSA-98gj-wwxm-cj3h
- NVD: CVE-2017-16876
- OSV: PYSEC-2017-18
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.