trentm/python-markdown2 · Security
XSS in python-markdown2
- GHSA ID
- GHSA-fv3h-8x5j-pvgq
- CVE ID
- CVE-2020-11888
- Severity
- medium
- Published
- Updated
- CVSS
- 6.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CVSS v3
- 6.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CVSS v4
- 5.1 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Description
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.
CWEs
- CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-11888 ↗
- 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://github.com/pypa/advisory-database/tree/main/vulns/markdown2/PYSEC-2020-65.yaml ↗
- https://lists.fedoraproject.org/archives/list/[email protected]/message/6XOAIRJJCZNJUALXDHSIGH5PS2H63A3J ↗
- https://lists.fedoraproject.org/archives/list/[email protected]/message/AQLRBGRVRRZK7P5SFL2MNGXFX37YHJAV ↗
- https://lists.fedoraproject.org/archives/list/[email protected]/message/PN6QSHRFZXRQAYZJQ4MOW5MKIXBYOMED ↗
- https://github.com/advisories/GHSA-fv3h-8x5j-pvgq ↗