Advisory

GHSA-5wmx-573v-2qwq

Also known as: CVE-2025-69534, PYSEC-2026-89

Summary

Python-Markdown has an Uncaught Exception

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-03-05 15:30 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

markdown

PyPI · All systems

Affected

  • introduced 0, fixed 3.8.1 (ecosystem)

Fixed versions

3.8.1

Fix

  • Fixed version 3.8.1
    pip install --upgrade markdown==3.8.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences