Description
MobSF is a mobile application security testing tool used. Prior to 4.5.1, mobsf/MobSF/settings.py places django.middleware.csrf.CsrfViewMiddleware only in the deprecated MIDDLEWARE_CLASSES setting and omits it from the active MIDDLEWARE tuple, allowing a remote attacker to make a logged-in victim submit cross-site POST requests to authenticated web endpoints including /delete_scan/, /upload/, /download_scan/, /change_password/, /create_user/, and /delete_user/. This can delete scans, upload or download applications, change passwords, or manage users with the victim account permissions. This issue is fixed in version 4.5.1.
Published: 2026-08-18
Score: 6.5 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability lies in MobSF’s migration of Django middleware configuration, which omitted the CsrfViewMiddleware from the active MIDDLEWARE tuple. This oversight allows a remote attacker, by crafting a malicious CSRF payload, to persuade a logged‑in victim to submit authenticated POST requests to endpoints such as /delete_scan/, /upload/, /download_scan/, /change_password/, /create_user/, and /delete_user/. The attacker can therefore delete scans, upload or download applications, change passwords, or perform user administration actions under the victim’s credentials. This loss of control over authenticated sessions constitutes a moderate‑severity breach of integrity and confidentiality for the affected user’s data.

Affected Systems

The issue affects MobSF Mobile‑Security‑Framework‑MobSF versions prior to 4.5.1. The specific products impacted are all releases of this tool from the earliest until just before the 4.5.1 update that fixes the configuration mistake. Users running any version older than 4.5.1 should consider themselves vulnerable.

Risk and Exploitability

The CVSS score of 6.5 indicates a moderate risk, and the expertise needed to exploit the flaw is in the medium range: a threat actor must reach the victim’s browser to deliver a CSRF vector. Because the EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, public exploitation activity has not been documented, but the attack surface remains present. The most reliable mitigation is to upgrade to 4.5.1 or later, where CsrfViewMiddleware is correctly enabled, or otherwise restore it in the active middleware configuration.

Generated by OpenCVE AI on August 18, 2026 at 19:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade MobSF to version 4.5.1 or newer, which reinstates CsrfViewMiddleware enforcement.
  • Add CsrfViewMiddleware to the active MIDDLEWARE tuple in MobSF’s settings.py if a custom configuration is used, ensuring CSRF protection for all POST endpoints.
  • If immediate upgrade is not possible, temporarily block unauthenticated POST requests to privileged endpoints or require an anti‑CSRF token validation at the REST API layer as an interim safeguard.

Generated by OpenCVE AI on August 18, 2026 at 19:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-3p54-567p-2wpr MobSF's CSRF checks not enforced after Django migration
History

Tue, 18 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Description MobSF is a mobile application security testing tool used. Prior to 4.5.1, mobsf/MobSF/settings.py places django.middleware.csrf.CsrfViewMiddleware only in the deprecated MIDDLEWARE_CLASSES setting and omits it from the active MIDDLEWARE tuple, allowing a remote attacker to make a logged-in victim submit cross-site POST requests to authenticated web endpoints including /delete_scan/, /upload/, /download_scan/, /change_password/, /create_user/, and /delete_user/. This can delete scans, upload or download applications, change passwords, or manage users with the victim account permissions. This issue is fixed in version 4.5.1.
Title MobSF: CSRF checks not enforced after Django migration
Weaknesses CWE-352
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-18T17:49:23.408Z

Reserved: 2026-07-31T21:04:04.041Z

Link: CVE-2026-68923

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-18T18:19:28.053

Modified: 2026-08-18T18:19:28.053

Link: CVE-2026-68923

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T20:00:04Z

Weaknesses
  • CWE-352

    Cross-Site Request Forgery (CSRF)