PYSEC-2026-89
Details
Python-Markdown version 3.8 contain a vulnerability where malformed HTML-like sequences can cause html.parser.HTMLParser to raise an unhandled AssertionError during Markdown parsing. Because Python-Markdown does not catch this exception, any application that processes attacker-controlled Markdown may crash. This enables remote, unauthenticated Denial of Service in web applications, documentation systems, CI/CD pipelines, and any service that renders untrusted Markdown. The issue was acknowledged by the vendor and fixed in version 3.8.1. This issue causes a remote Denial of Service in any application parsing untrusted Markdown, and can lead to Information Disclosure through uncaught exceptions.
Are you affected?
Enter the version of the package you're using.
Affected packages
0No fixed version published yet for markdown (pip). Pin to a known-safe version or switch to an alternative.
References
- https://github.com/Python-Markdown/markdown/actions/runs/15736122892[WEB]
- http://www.openwall.com/lists/oss-security/2026/03/06/4[ADVISORY]
- https://github.com/Python-Markdown/markdown/issues/1534[REPORT]
- https://github.com/Python-Markdown/markdown[PACKAGE]
- https://github.com/advisories/GHSA-5wmx-573v-2qwq[ADVISORY]