Skip to main content

django-mdeditor EUVDEUVD-2025-209593

| CVE-2025-13030 LOW
Missing Authentication for Critical Function (CWE-306)
2026-04-30 snyk
2.0
CVSS 4.0 · Vendor: snyk
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify django-mdeditor endpoint
  2. Delivery
    Craft malicious file with image extension
  3. Exploit
    Upload via unauthenticated /mdeditor/upload
  4. Execution
    User/process accesses uploaded file
  5. Impact
    Execute 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

django-mdeditor 0 <*

Affected Packages

pypi django-mdeditor no fix

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

Vendor (snyk) PRIMARY 2.0 LOW
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
Low

Lifecycle Timeline

3
Severity Changed
Apr 30, 2026 - 06:22 NVD
HIGH LOW
CVSS changed
Apr 30, 2026 - 06:22 NVD
7.1 (HIGH) 2.0 (LOW)
CVE Published
Apr 30, 2026 - 05:00 nvd
LOW 2.0

DescriptionCVE.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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 pypi packages depend on django-mdeditor (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 0.1.20.

Executive ViewAI

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.1%
Top 83% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Partial

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy