CVE-2025-69534
Python vulnerability analysis and mitigation

Overview

CVE-2025-69534 is a Denial of Service vulnerability in Python-Markdown version 3.8 where malformed HTML-like sequences (specifically <![ patterns) cause Python's html.parser.HTMLParser to raise an unhandled AssertionError during Markdown parsing. Because Python-Markdown does not catch this exception, any application processing attacker-controlled Markdown input may crash. The vulnerability was published on March 5, 2026, acknowledged by the vendor, and fixed in version 3.8.1. It carries a CVSS v3.1 base score of 7.5 (High) (Feedly, GitHub Issue).

Technical details

The root cause is classified as CWE-400 (Uncontrolled Resource Consumption) and stems from Python-Markdown 3.8 passing malformed HTML-like input to Python's standard library html.parser.HTMLParser, which raises an AssertionError on sequences such as <![ followed by unexpected tokens. Python-Markdown does not wrap this call in exception handling, so the unhandled exception propagates and crashes the host application. Notably, the underlying bug originates in CPython's HTMLParser (tracked as cpython#77057, fixed in Python 3.13.4 and 3.14.0b2); Python-Markdown 3.8.1 provides a workaround for older Python versions. A public proof-of-concept exists demonstrating the crash by calling markdown.markdown(crash_input, extensions=["extra"]) with payloads like "<![" or "<![>og))/uw_..." (GitHub Issue, oss-security).

Impact

Successful exploitation causes an unhandled AssertionError that crashes the Markdown parsing process, resulting in a complete Denial of Service for any web application, documentation system, CI/CD pipeline, or service that renders untrusted Markdown. Additionally, uncaught exceptions may expose internal stack traces or application details to the attacker, creating a secondary risk of information disclosure. The attack requires no authentication and no user interaction, making it trivially exploitable against any internet-facing service accepting Markdown input (Feedly, GitHub Issue).

Exploitability

A public proof-of-concept is available on GitHub demonstrating reliable crash reproduction with specific malformed payloads (GitHub Issue). The vulnerability is exploitable remotely without authentication or user interaction, requiring only the ability to submit Markdown content to a vulnerable application. There is no evidence of in-the-wild exploitation or threat actor attribution at this time. The EPSS score is approximately 0.071% (low probability of exploitation in the near term), and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog (Feedly).

Exploitation steps

  1. Reconnaissance: Identify web applications, documentation platforms, or CI/CD systems that accept user-supplied Markdown input and are running Python-Markdown version 3.8 (e.g., via error messages, HTTP headers, or open-source project dependency files).
  2. Craft malformed payload: Prepare a Markdown string containing a malformed HTML-like sequence such as <![ or <![>og))/uw_... that will be passed to html.parser.HTMLParser during parsing.
  3. Submit payload: Send the crafted Markdown input to the target application's Markdown rendering endpoint (e.g., a comment field, wiki editor, documentation submission form, or API endpoint).
  4. Trigger crash: The application calls markdown.markdown(payload, extensions=["extra"]), which internally invokes HTMLParser on the malformed sequence, raising an unhandled AssertionError that crashes the parsing thread or process.
  5. Observe impact: The application crashes or returns an unhandled exception error, causing service unavailability. Repeated submissions can sustain the DoS condition (GitHub Issue, oss-security).

Indicators of compromise

  • Logs: Application error logs showing repeated AssertionError exceptions originating from html.parser.HTMLParser during Markdown parsing; stack traces referencing Python-Markdown's HTML preprocessing code.
  • Logs: Web server access logs showing repeated POST requests to Markdown rendering endpoints (e.g., comment submission, wiki edit, or API endpoints) from the same or rotating IP addresses.
  • Network: Unusual volume of requests to Markdown input endpoints, particularly with short or malformed body content containing <![ sequences.
  • Process: Unexpected crashes or restarts of the application process or worker threads handling Markdown rendering; increased error rates in application performance monitoring.

Mitigation and workarounds

The primary remediation is to upgrade Python-Markdown from version 3.8 to version 3.8.1, which was released on June 18, 2025 and includes a workaround for the underlying HTMLParser bug (GitHub Actions). Upgrading CPython to version 3.13.4 or 3.14.0b2 (or later) also addresses the root cause in the standard library (oss-security). For applications that cannot be immediately patched, implement input validation to reject or sanitize malformed HTML-like sequences (e.g., <![) before passing content to the Markdown parser, restrict Markdown parsing to trusted sources only, or wrap Markdown parsing calls in a try/except block to prevent unhandled exceptions from crashing the application. Red Hat has issued multiple errata (e.g., RHSA-2026:9742, RHSA-2026:13512) and openSUSE has published security advisories addressing this vulnerability for their respective distributions (Feedly).

Community reactions

The vulnerability was disclosed on the oss-security mailing list on March 6, 2026 by Alan Coopersmith (Oracle Solaris Engineering), who noted that the root cause is a bug in CPython's HTMLParser (cpython#77057) and that Python-Markdown 3.8.1 provides a workaround for older Python versions (oss-security). The vendor acknowledged the issue and released a fix promptly. Multiple Linux distributions including openSUSE and Red Hat issued security advisories and package updates. Community discussion on the GitHub issue thread highlighted the upstream CPython nature of the bug and the importance of exception handling in Markdown parsers.

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-50027CRITICAL9.8
  • Python logoPython
  • mcp-memory-service
NoYesAug 14, 2026
CVE-2026-49986HIGH7.1
  • Python logoPython
  • neuro-cortex-memory
NoYesAug 14, 2026
CVE-2026-53708MEDIUM6.6
  • Python logoPython
  • mcp-contextforge-gateway
NoYesAug 14, 2026
CVE-2026-47192LOW2.1
  • Python logoPython
  • kas
NoYesAug 14, 2026
CVE-2026-47191LOW2.1
  • Python logoPython
  • kas
NoYesAug 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management