---
id: CVE-2024-2319
aliases:
  - GHSA-fvx8-79hx-x82f
  - PYSEC-2026-1299
title: Django MarkdownX Cross-Site Scripting (XSS) vulnerability
summary: Django MarkdownX Cross-Site Scripting (XSS) vulnerability
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N'
vendor: django-markdownx
product: django-markdownx
ecosystem: pip
affected:
  - django-markdownx <= 4.0.2
published: '2024-03-08'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-fvx8-79hx-x82f'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-2319'
  - url: 'https://github.com/neutronX/django-markdownx'
  - url: >-
      https://www.incibe.es/en/incibe-cert/notices/aviso/cross-site-scripting-vulnerability-django-markdownx
tags:
  - osv
  - pip
epss: 0.00389
epssPercentile: 0.30214
ingestedAt: '2026-07-08T18:25:49.137Z'
---

## Overview

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.

## Affected packages

- `django-markdownx <= 4.0.2`

## Remediation

Refer to the advisory for the patched release.
