Python-Markdown has an Uncaught Exception
Published 5 Mar 2026 · Updated 10 Sept 2026
Is your project on an affected markdown?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <3.8.1
- Fixed in
- 3.8.1
pip install 'markdown>=3.8.1'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.
Is GHSA-5wmx-573v-2qwq in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected markdown, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2025-69534
- Linkgithub.com/Python-Markdown/markdown/issues/1534
- Linkgithub.com/Python-Markdown/markdown/pull/1535
- Linkgithub.com/Python-Markdown/markdown
- Linkgithub.com/Python-Markdown/markdown/actions/runs/15736122892
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/markdown/PYSEC-2026-89.yaml
- Linkwww.openwall.com/lists/oss-security/2026/03/06/4
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.