CVE-2025-69534: Python-Markdown Denial of Service Vulnerability Due to Unhandled AssertionError

markdown Updated 20 May 2026

Summary

05/03/2026
No i
Moderate
7.5

CVE-2025-69534: 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. Affects markdown versions 1.7 – 3.9. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Python-Markdown is a widely used library for converting Markdown text to HTML. It is designed to be simple and extensible, allowing developers to easily integrate Markdown processing into their applications. However, the library has a vulnerability that can lead to Denial of Service (DoS) when processing untrusted Markdown input, making it critical for applications that rely on user-generated content.

Vulnerability Detail

Python-Markdown version 3.8 contains a vulnerability where malformed HTML-like sequences can cause the html.parser.HTMLParser to raise an unhandled AssertionError during Markdown parsing. This issue arises because Python-Markdown does not catch this exception, leading to potential crashes in applications that process attacker-controlled Markdown. The ramifications include remote, unauthenticated Denial of Service in web applications, documentation systems, CI/CD pipelines, and any service that renders untrusted Markdown. The vulnerability can also lead to Information Disclosure through uncaught exceptions.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, you can implement input validation to sanitize Markdown content before processing it. This can help mitigate the risk of triggering the unhandled exception. For example, you can use a try-except block to catch potential exceptions during Markdown parsing:

try: html_output = markdown.markdown(user_input) except Exception as e: # Handle the exception, log it, or notify the user print('Error processing Markdown:', e)

Conclusion

The vulnerability identified as CVE-2025-69534 in Python-Markdown poses a significant risk of Denial of Service due to unhandled exceptions during Markdown parsing. It is crucial for developers to update to the patched version 3.8.1 or later and consider implementing input validation as a temporary workaround to mitigate risks.

See every vulnerability recorded for markdown →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 7.5, indicating a high severity level.

Python-Markdown versions prior to 3.8.1 are affected by this vulnerability.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The potential impacts include Denial of Service in applications that process untrusted Markdown, which can disrupt service availability.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software using just the Pipfile.lock.

Related vulnerabilities

Recent vulnerabilities recorded for markdown.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback