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.
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Python (PyPI) | markdown2 | < 2.3.6 | 2.3.6 |
Referencias
- https://github.com/trentm/python-markdown2/issues/285
- https://github.com/advisories/GHSA-p6h9-gw49-rqm4
- https://nvd.nist.gov/vuln/detail/CVE-2018-5773
- https://github.com/google/osv/issues/430
- https://github.com/trentm/python-markdown2/pull/303
- https://github.com/trentm/python-markdown2/commit/1b1dcdd727c0ef03453b9f5ef5ae3679f1d72323
- https://github.com/pypa/advisory-database/tree/main/vulns/markdown2/PYSEC-2018-13.yaml
- https://github.com/trentm/python-markdown2
- https://github.com/trentm/python-markdown2/blob/master/CHANGES.md#python-markdown2-236
- Vector CVSS
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N- Debilidad (CWE)
CWE-79- Plataforma
- Python (PyPI)
- Paquete
markdown2- Publicada
- 18.01.2018
- Actualizado
- 11.10.2026 11:20
Fuentes y licencias
OSV / GitHub Advisory Database - PYSEC-2018-13 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-p6h9-gw49-rqm4 - CC BY 4.0
Historial de vulnerabilidades: markdown2
Todas las vulnerabilidades publicadas de este paquete (Python (PyPI)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
- Entradas en total
- 4
- Primera → última
- 01.2018 03.2021
- Sin corrección
- 0
- Explotada en ataques
- 0
Distribución por gravedad
- Alta 1
- Media 3
Divulgaciones por año
- 2018: 1
- 2019: 0
- 2020: 2
- 2021: 1
- 2022: 0
- 2023: 0
- 2024: 0
- 2025: 0
- 2026: 0
-
markdown2 is vulnerable to cross-site scripting esta entrada
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.