Security mailing lists by PureSourceCode

CVE-2018-5773

MEDIUM 6.1CVSS 3.0

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.

Published
18 Jan 2018
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-79
Also known as
GHSA-p6h9-gw49-rqm4PYSEC-2018-13
Sources
NVDJSONOSV GHSA-p6h9-gw49-rqm4JSONOSV PYSEC-2018-13JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 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
NVD nvd@nist.gov (Primary) CVSS 3.0 MEDIUM 6.1 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
OSV GitHub CVSS 3.0 MEDIUM 6.1 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD python-markdown2_project python-markdown2
cpe:2.3:a:python-markdown2_project:python-markdown2:*:*:*:*:*:*:*:*
<= 2.3.5
OSV PyPI markdown2 < 2.3.6 2.3.6

References

History

  • 25 Nov 2026 20:20 UTC · NVD: first stored (published 18 Jan 2018)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 18 Jan 2018)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 12 Jul 2018)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.