CVE-2025-13030
7.1Django · django-mdeditor
The django-mdeditor package is vulnerable to missing authentication on the image upload endpoint, allowing unauthenticated attackers to upload malicious files and achieve arbitrary code execution.
Executive summary
The django-mdeditor package contains a critical authentication bypass vulnerability that permits unauthenticated remote attackers to execute arbitrary code via the image upload function.
Vulnerability
This vulnerability involves a missing authentication check on the image upload endpoint, which, combined with insufficient file name sanitization, allows an unauthenticated attacker to upload malicious files and execute arbitrary code on the server.
Business impact
The ability for an unauthenticated user to achieve remote code execution represents a critical risk to the confidentiality, integrity, and availability of the host system. A successful exploit could lead to full server compromise, unauthorized data access, and the potential for lateral movement within the corporate network. Given the CVSS score of 7.1, this flaw poses a significant threat to any application utilizing the affected library.
Remediation
Immediate Action: As no official patched version is currently available, administrators should immediately restrict access to the affected image upload endpoint or deactivate the editor functionality until a vendor fix is released.
Proactive Monitoring: Review web server and application logs for suspicious POST requests directed at the mdeditor image upload path, particularly those containing unexpected file extensions or high-frequency upload attempts.
Compensating Controls: Implement a Web Application Firewall (WAF) rule to block unauthorized access to the upload endpoint and enforce strict file type validation to prevent the execution of malicious scripts.
Exploitation status
Public Exploit Available: Unknown
Analyst recommendation
The absence of an official patch necessitates immediate manual intervention to mitigate the risk of remote code execution. Security teams must prioritize restricting access to the vulnerable endpoint and monitor for any signs of exploitation, as the lack of authentication makes this an attractive target for automated scanning and compromise.
Sources
Originally found and disclosed by Jeager Coder, per the CVE Program record.