An issue was discovered in markdown2 (aka python-markdown2) through 2.3.5
Published Jan 18, 2018
5.3
MEDIUMCVSS 4.0
EPSS 0.82%
Description
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.
Affected products
No data.
- ≤ 2.3.5
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
AV:N/AC:M/Au:N/C:N/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
Table of values (12 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 0.82% (0.00819) | 55.63th | v5 (v2026.06.15) |
| Sep 20, 2026 | 0.82% (0.00819) | 55.66th | v5 (v2026.06.15) |
| Jul 20, 2024 | 0.07% (0.00072) | 31.74th | v3 (v2023.03.01) |
| May 4, 2024 | 0.07% (0.00072) | 30.57th | v3 (v2023.03.01) |
| Mar 15, 2024 | 0.07% (0.00070) | 28.55th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.06% (0.00063) | 24.69th | v3 (v2023.03.01) |
| Sep 3, 2023 | 0.08% (0.00078) | 32.45th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.06% (0.00061) | 23.61th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.89% (0.00885) | 27.89th | v2 (v2022.01.01) |
| Feb 4, 2022 | 0.89% (0.00885) | 10.50th | v2 (v2022.01.01) |
| Feb 3, 2022 | 0.42% (0.00416) | 10.04th | v5 (v2026.06.15) |
| Apr 14, 2021 | 0.42% (0.00416) | 0.00th | v1 |
References (8)
- https://github.com/advisories/GHSA-p6h9-gw49-rqm4 Advisory
- https://github.com/google/osv/issues/430
- https://github.com/pypa/advisory-database/tree/main/vulns/markdown2/PYSEC-2018-13.yaml
- https://github.com/trentm/python-markdown2/blob/master/CHANGES.md#python-markdown2-236
- https://github.com/trentm/python-markdown2/commit/1b1dcdd727c0ef03453b9f5ef5ae3679f1d72323
- https://github.com/trentm/python-markdown2/issues/285 x_refsource_MISCThird Party Advisory
- https://github.com/trentm/python-markdown2/pull/303
- https://nvd.nist.gov/vuln/detail/CVE-2018-5773
Change history (0)
No recorded changes yet.