All reports
Medium

markdown2 is vulnerable to cross-site scripting

Affected versions

Version ranges need review.

Affected versions
< 2.3.6
Fixed version
2.3.6
Affected versions
<2.3.6
Fixed version
2.3.6

Exploitation

CVE-2018-5773

Probability of exploitation in the next 30 days: 0.82%

FIRST EPSS · 2026-11-22

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.

Links

Credits

  • woodruffw