CVE-2023-26303: markdown-it-py Denial of Service vulnerability
5.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.10249%
CWE
Published
2/23/2023
Updated
9/30/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
markdown-it-py | pip | < 2.2.0 | 2.2.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from improper handling of null assertions in multiple rendering functions. The GitHub patch shows critical replacements of 'assert' statements with conditional checks in these functions. Assertions like 'assert token.children is not None' and 'assert token.attrs contains alt' could be forcibly failed with malicious input, triggering uncaught AssertionErrors and crashing the application. The functions were directly modified in the security fix commit to remove these dangerous assertions.