CVE-2025-46335: MobSF Allows Stored Cross Site Scripting (XSS) via Malicious SVG Icon Upload

mobsf Updated 14 Dec 2025

Summary

05/05/2025
Yes i
Moderate
6.9

CVE-2025-46335: Vulnerable MobSF Versions:. Affects mobsf versions < 4.3.3. Fixed in 4.3.3. 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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

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