CVE-2018-5773
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| PyPI | markdown2 | <2.3.6 | 2.3.6 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-5773
- https://github.com/google/osv/issues/430
- https://github.com/trentm/python-markdown2/issues/285
- https://github.com/trentm/python-markdown2/pull/303
- https://github.com/trentm/python-markdown2/commit/1b1dcdd727c0ef03453b9f5ef5ae3679f1d72323
- https://github.com/advisories/GHSA-p6h9-gw49-rqm4
- 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
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.