Advisory

GHSA-p6h9-gw49-rqm4

Also known as: CVE-2018-5773, PYSEC-2018-13

Summary

markdown2 is vulnerable to cross-site scripting

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2018-07-12 20:29 UTC
Modified
2024-09-30 17:23 UTC

Affected packages and fixes

markdown2

PyPI · All systems

Affected

  • introduced 0, fixed 2.3.6 (ecosystem)

Fixed versions

2.3.6

Fix

  • Fixed version 2.3.6
    pip install --upgrade markdown2==2.3.6

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences