Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify django-mdeditor endpoint
-
DeliveryCraft malicious file with image extension
-
ExploitUpload via unauthenticated /mdeditor/upload
-
ExecutionUser/process accesses uploaded file
-
ImpactExecute arbitrary code in application context
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication required for critical functions
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No authentication required (PR:N) for accessing the vulnerable /mdeditor/upload endpoint in default configurations. However, user interaction (UI:R from CVSS vector) is required to trigger code execution after the malicious file upload - this could be an administrator accessing an uploaded file, an automated media processing task, or a victim user viewing a page that includes the uploaded content. Exploitation specifically requires that the Django application includes django-mdeditor in INSTALLED_APPS with default URL routing (typically /mdeditor/upload path), and that uploaded files are stored in a location where they can be accessed and executed (web-accessible directory with script execution enabled). Changed scope (S:C) indicates the vulnerability can affect resources beyond the Django application itself, likely through execution in the server context. The endpoint is exploitable in all django-mdeditor versions prior to the patch commit with default configuration, as upload_require_auth defaults to False even after the patch for backward compatibility. Applications that have explicitly enabled upload_require_auth=True or restricted endpoint access via custom middleware are not vulnerable. |
| Impact | Real-world risk is MODERATE to HIGH for exposed Django applications using django-mdeditor. CVSS 7.1 reflects network accessibility and lack of authentication requirement, but requires user interaction (UI:R) and has Changed scope (S:C) indicating potential cross-boundary impact. Attack complexity is low (AC:L) making exploitation straightforward once the endpoint is identified. Publicly available exploit code exists (E:P from CVSS vector), significantly lowering the barrier to exploitation. However, UI:R requirement means attackers cannot achieve fully automated mass exploitation - the vulnerable endpoint must be accessed and the malicious file triggered by a user or application logic. EPSS score unavailable, limiting probabilistic risk assessment. Not in CISA KEV suggests exploitation is not yet widespread in the wild. Primary risk applies to internet-facing Django applications where the mdeditor upload endpoint is accessible without authentication and uploaded files are stored in web-accessible directories with execute permissions. The automatable component is the upload itself; code execution requires subsequent file access. Technical impact is high (arbitrary code execution in application context), but exploitation requires identifying the specific URL path (/mdeditor/upload or similar) and triggering execution of the uploaded payload. |
| Exploit ScenarioDerived | An unauthenticated attacker identifies a Django application using django-mdeditor by fingerprinting the /mdeditor/upload endpoint. They craft a malicious Python file (e.g., webshell.py) and upload it through the image upload interface, bypassing extension checks by renaming it to webshell.jpg.py or exploiting filename parsing weaknesses. Since the endpoint lacks authentication and file content validation, the upload succeeds and the file is stored in MEDIA_ROOT or another web-accessible directory. The attacker then accesses the uploaded file via its predictable URL path, triggering server-side code execution with Django application privileges. Publicly available proof-of-concept exploit code exists (E:P), though the attack requires a user or automated process to trigger execution of the uploaded payload. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 30, 2026
Remote code execution in django-mdeditor (all versions prior to commit 3e80f9e) allows unauthenticated attackers to upload malicious files via the image upload endpoint. The vulnerability combines missing authentication (CWE-306) with insufficient filename sanitization, enabling arbitrary code execution when uploaded files are accessed. Exploit code is publicly available (CVSS E:P), though user interaction is required (UI:R). EPSS data not available, not listed in CISA KEV at time of analysis.
RemediationAI
Update django-mdeditor to a version incorporating commit 3e80f9edcabc5d2fc136b05a501964b8a5e97cfe or later from https://github.com/pylixm/django-mdeditor. The patch introduces two protections: optional authentication requirement via upload_require_auth configuration flag (defaults to False for backward compatibility) and Pillow-based image validation to verify uploaded files are legitimate images. Enable authentication by adding 'upload_require_auth': True to MDEDITOR_CONFIGS in Django settings.py, which restricts uploads to authenticated users only. If immediate patching is not feasible, implement compensating controls: restrict access to the /mdeditor/upload endpoint using Django middleware or web server ACLs to authenticated users only; configure file upload directory outside the web root with no execute permissions; implement Content-Security-Policy headers to prevent uploaded script execution; or disable the mdeditor upload functionality entirely and use external image hosting. Note that enabling upload_require_auth changes application behavior and may break workflows expecting anonymous uploads. Vendor advisory available at https://security.snyk.io/vuln/SNYK-PYTHON-DJANGOMDEDITOR-8630926.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
django-mdeditor is a Python package providing a Markdown editor widget for Django web applications. The vulnerability exists in the UploadImageView class (mdeditor/views.py line 25) which handles image uploads for the editor. The endpoint is exposed without Django's standard authentication decorators or middleware checks, and accepts file uploads without validating file content beyond extension checking. The CVSS vector indicates network-based attack (AV:N) with low complexity (AC:L) requiring no privileges (PR:N), classified under CWE-306 (Missing Authentication for Critical Function). The code uses Django's file upload handling but lacks both authentication guards and robust file type validation using magic bytes or image library verification, allowing attackers to upload executable files (e.g., Python .py files, server-side scripts) disguised with image extensions.
Know when N A gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:L/E:P
Primary rating from Vendor (snyk) · only source for this CVE.
CVSS VectorVendor: snyk
Lifecycle Timeline
3DescriptionCVE.org
All versions of the package django-mdeditor are vulnerable to Missing Authentication for Critical Function in the image upload endpoint. An attacker can upload malicious files and achieve arbitrary code execution since this endpoint lacks authentication protection and proper sanitisation of file names.
Executive ViewAI
django-mdeditor, a markdown editor library used in web applications, contains a critical remote code execution vulnerability (CVE-2025-13030) that allows unauthenticated attackers to upload and execute malicious files through the image upload feature. Any organization using django-mdeditor in production faces immediate risk of system compromise and data breach, as the vulnerability requires no authentication and publicly available exploit code exists.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable the image upload endpoint entirely if not critical to operations; (2) Restrict upload endpoint access via network controls (IP whitelist, WAF rules) to trusted internal sources only; (3) Implement strict Content Security Policy headers to prevent execution of uploaded files; (4) Configure web server to serve uploads with Content-Disposition: attachment headers; (5) Store uploads outside web root and disable script execution in upload directories; (6) Enable detailed logging and monitoring of all file uploads for forensic investigation.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr
Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han
A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi
Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc
Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula
Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root
LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(
Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti
Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr
SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg
Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ
Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali
EUVD-2025-209593
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB