CVE-2018-5773
Python-markdown2 Project Python-markdown2 vulnerability
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.
Affected products
Python-markdown2. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python-markdown2 Project Python-markdown2 runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/trentm/python-markdown2/issues/285 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2018-5773
- github.com/advisories/GHSA-p6h9-gw49-rqm4
- github.com/google/osv/issues/430
- github.com/trentm/python-markdown2/pull/303
- github.com/trentm/python-markdown2/blob/master/CHANGES.md#python-markdown2-236
- github.com/trentm/python-markdown2/commit/1b1dcdd727c0ef03453b9f5ef5ae3679f1d72323
- github.com/pypa/advisory-database/tree/main/vulns/markdown2/PYSEC-2018-13.yaml
- nvd.nist.gov/vuln/detail/CVE-2018-5773
- cve.org/CVERecord?id=CVE-2018-5773
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.