CVE-2025-24803: MobSF Stored Cross-Site Scripting (XSS) Vulnerability

mobsf Updated 02 Oct 2025

Summary

05/02/2025
Yes i
High
8.1

CVE-2025-24803: MobSF Stored Cross-Site Scripting (XSS). Affects mobsf versions < 4.3.1. Fixed in 4.3.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

MobSF (Mobile Security Framework) is an open-source tool designed for mobile application security testing. It provides functionalities such as static and dynamic analysis of mobile applications, helping developers identify security vulnerabilities. The framework is widely used for assessing the security posture of iOS and Android applications. However, versions prior to 4.3.1 are vulnerable to a Stored Cross-Site Scripting (XSS) attack, which can compromise user accounts and administrative functionalities.

Vulnerability Detail

The vulnerability arises from improper neutralization of input during web page generation, specifically in the iOS Dynamic Analyzer functionality. An attacker can exploit this vulnerability by uploading a malicious application with a modified CFBundleIdentifier that includes special characters. This allows the attacker to break the HTML context and execute arbitrary scripts in the context of the user's session, potentially leading to unauthorized actions as the user, including administrative privileges.

How To Fix

Latest published version: 4.5.3 as of 23 Oct 2026

pip install --upgrade "mobsf==4.5.3"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.3.1

This is the first release that contains the fix.

pip install --upgrade "mobsf==4.3.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid uploading applications with modified CFBundleIdentifiers that contain special characters until the patch is applied. Ensure that user input is properly sanitized before rendering it in the web application.

Conclusion

The MobSF Stored Cross-Site Scripting (XSS) vulnerability (CVE-2025-24803) poses a significant risk to users and administrators of the framework. It is crucial to update to version 4.3.1 or later to mitigate this risk. Additionally, employing proper input sanitization techniques can help prevent similar vulnerabilities in the future.

See every vulnerability recorded for mobsf →

Share this vulnerability

FAQ

Stored XSS is a type of security vulnerability where an attacker can inject malicious scripts into a web application, which are then stored on the server and executed when other users access the affected page.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which monitors and alerts for open-source vulnerabilities in real-time.

Exploitation of this vulnerability can allow attackers to perform actions as users, including administrative actions, which can lead to data breaches and unauthorized access.

While the best solution is to update to the patched version, you can mitigate the risk by avoiding the upload of applications with modified CFBundleIdentifiers and ensuring proper input sanitization.

The CVSS score of this vulnerability is 8.1, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for mobsf.

How To Fix

Latest published version: 4.5.3 as of 23 Oct 2026

pip install --upgrade "mobsf==4.5.3"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.3.1

This is the first release that contains the fix.

pip install --upgrade "mobsf==4.3.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback