CVE-2025-46335: MobSF Allows Stored Cross Site Scripting (XSS) via Malicious SVG Icon Upload
Summary
CVE-2025-46335: Vulnerable MobSF Versions:. Affects mobsf versions < 4.3.3. Fixed in 4.3.3. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
Mobile Security Framework (MobSF) is an open-source tool designed for the security assessment of mobile applications. It provides features such as static and dynamic analysis, malware analysis, and security assessment of Android and iOS applications. MobSF is widely used by developers and security professionals to identify vulnerabilities in mobile apps. However, versions up to 4.3.2 are susceptible to a stored Cross-Site Scripting (XSS) vulnerability due to improper handling of SVG files during the APK analysis process.
Vulnerability Detail
A Stored Cross-Site Scripting (XSS) vulnerability exists in MobSF versions <= 4.3.2. This vulnerability is caused by the inadequate sanitization of user-uploaded SVG files. When a malicious SVG file is uploaded as an app icon during the analysis of an Android Studio project, MobSF processes this file without validating its content. If the SVG contains embedded JavaScript, accessing the file through the MobSF web interface can execute the script in the context of the user's session, leading to potential data theft or session hijacking.
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.3
This is the first release that contains the fix.
pip install --upgrade "mobsf==4.3.3"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, avoid uploading SVG files as app icons in your Android Studio projects until you can update to the patched version of MobSF. Instead, use PNG or other image formats that do not support embedded scripts.
Conclusion
The vulnerability identified as CVE-2025-46335 in MobSF versions up to 4.3.2 poses a significant risk due to stored XSS via malicious SVG file uploads. Users are strongly advised to update to version 4.3.3 or later to mitigate this risk. Additionally, utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.
See every vulnerability recorded for mobsf →
FAQ
The XSS vulnerability allows attackers to execute malicious scripts in the context of the user's session, potentially leading to data theft or unauthorized actions.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application against this vulnerability using the Vulert playground at Vulert Scanner.
If immediate updating is not possible, refrain from using SVG files as app icons and switch to safer image formats until you can apply the patch.
Regularly update MobSF to the latest version and avoid uploading untrusted files. Implement additional security measures such as web application firewalls.
While we do not promote malicious activities, the vulnerability arises when an SVG file contains embedded JavaScript. This can be exploited if proper sanitization is not enforced.
References
Related vulnerabilities
Recent vulnerabilities recorded for mobsf.