Advisory

PYSEC-2018-13

Also known as: CVE-2018-5773, GHSA-p6h9-gw49-rqm4

Summary

The record has no summary.

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

Not rated by the source.

Dates

Published
2018-01-18 21:29 UTC
Modified
2023-11-08 04:00 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: PyPA Advisory Database · CC BY 4.0

Sources & licences