CVE-2023-26303 markdown-it-py crash on null assertions

Low 3.3 Published Updated

An attacker can cause a denial of service in markdown-it-py by submitting specially crafted input that triggers null assertions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-26303?

CVE-2023-26303 is a low-severity denial of service vulnerability in Executable Books markdown-it-py, published on 22 Feb 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Denial of service could be caused to markdown-it-py, before v2.2.0, if an attacker was allowed to force null assertions with specially crafted input.

Weakness: CWE-173

Which versions are affected by CVE-2023-26303?

3 open source packages ship an affected version, including markdown-it-py. It affects 1 product.

PackageAffectedFixed in
markdown-it-py PyPIAll versions2.2.0
markdown-it-py PyPIAll versions2.2.0
markdown-it-py PyPIAll versions2.2.0
Linux distribution packages (2)
python-markdown-it-py openSUSE:TumbleweedAll versions2.2.0-1.1
python-markdown-it-py openSUSE:TumbleweedAll versions4.2.0-1.2

Products include Executablebooks Markdown-It-Py.

How do I fix CVE-2023-26303?

Upgrade markdown-it-py to 2.2.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-26303 being exploited?

There is no known exploitation of CVE-2023-26303 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2023-26303, GHSA-vrjv-mxr7-vjf8, PYSEC-2023-24, ROOT-APP-PYPI-CVE-2023-26303, UBUNTU-CVE-2023-26303, openSUSE-SU-2024:12772-1 and 1 more.

Is CVE-2023-26303 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free