CVE-2024-2319 Cross-Site Scripting vulnerability in Django MarkdownX

Medium 5.4 Published Updated

An attacker can execute arbitrary JavaScript via stored XSS in the upload functionality of Django MarkdownX.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-2319?

CVE-2024-2319 is a medium-severity cross-site scripting vulnerability in Django MarkdownX, published on 8 Mar 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Cross-Site Scripting (XSS) vulnerability in the Django MarkdownX project, affecting version 4.0.2. An attacker could store a specially crafted JavaScript payload in the upload functionality due to lack of proper sanitisation of JavaScript elements.

Weakness: CWE-79

Which versions are affected by CVE-2024-2319?

3 open source packages ship an affected version, including django-markdownx. It affects 1 product.

PackageAffectedFixed in
django-markdownx PyPIAll versions to 4.0.2None
django-markdownx PyPIAll versions to 4.0.2None
django-markdownx PyPIAll versions to 4.0.2None

Products include Neutronx Markdownx.

How do I fix CVE-2024-2319?

No fix has been published for CVE-2024-2319 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2024-2319 being exploited?

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

Sources

Also known as GHSA-fvx8-79hx-x82f, PYSEC-2026-1299.

Is CVE-2024-2319 in your software?

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

Check your SBOMs for free