Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXA2aDktZ3c0OS1ycW00
markdown2 is vulnerable to cross-site scripting
An issue was discovered in markdown2
(aka python-markdown2) through 2.3.5. The safe_mode
feature, which is supposed to sanitize user input against XSS, is flawed and does not escape the input properly. With a crafted payload, XSS can be triggered, as demonstrated by omitting the final >
character from an IMG tag.
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXA2aDktZ3c0OS1ycW00
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 6 years ago
Updated: 3 months ago
CVSS Score: 6.1
CVSS vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS Percentage: 0.00063
EPSS Percentile: 0.29423
Identifiers: GHSA-p6h9-gw49-rqm4, CVE-2018-5773
References:
- https://nvd.nist.gov/vuln/detail/CVE-2018-5773
- https://github.com/trentm/python-markdown2/issues/285
- https://github.com/advisories/GHSA-p6h9-gw49-rqm4
- https://github.com/google/osv/issues/430
- https://github.com/trentm/python-markdown2/pull/303
- https://github.com/trentm/python-markdown2/blob/master/CHANGES.md#python-markdown2-236
- https://github.com/trentm/python-markdown2/commit/1b1dcdd727c0ef03453b9f5ef5ae3679f1d72323
- https://github.com/pypa/advisory-database/tree/main/vulns/markdown2/PYSEC-2018-13.yaml
Blast Radius: 22.0
Affected Packages
pypi:markdown2
Dependent packages: 138Dependent repositories: 4,032
Downloads: 2,068,369 last month
Affected Version Ranges: < 2.3.6
Fixed in: 2.3.6
All affected versions: 1.1.0, 1.1.1, 1.2.0, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.4.2, 2.0.0, 2.0.1, 2.1.0, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5
All unaffected versions: 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.3.10, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8, 2.4.9, 2.4.10, 2.4.11, 2.4.12, 2.4.13, 2.5.0, 2.5.1, 2.5.2