CVE-2025-46335: Mobile Security Framework (MobSF) Allows Stored Cross Site Scripting (XSS) via malicious SVG Icon Upload

Published May 5, 2025
·
Updated

Vulnerable MobSF Versions: <= v4.3.2

CVSS V4.0 Score: 8.6 (CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N)

Details: A Stored Cross-Site Scripting (XSS) vulnerability has been identified in MobSF versions ≤ 4.3.2. The vulnerability arises from improper sanitization of user-supplied SVG files during the Android APK analysis workflow.

When an Android Studio project contains a malicious SVG file as an app icon (e.g path, /app/src/main/res/mipmap-hdpi/iclauncher.svg), and the project is zipped and uploaded to MobSF, the tool processes and extracts the contents without validating or sanitizing the SVG.

Upcon ZIP extraction this icon file is saved by MobSF to: user/.MobSF/downloads/<filename>.svg

This file becomes publicly accessible via the web interface at:

http://127.0.0.1:8081/download/filename.svg

If the SVG contains embedded JavaScript (e.g., an XSS payload), accessing this URL via a browser leads to the execution of the script in the context of the MobSF user session, resulting in stored XSS.

Proof Of Concept:

1. Create a malicious SVG file (iclauncher.svg) with an embedded XSS payload.

!01

2. Place the file in the Android Studio project directory: /app/src/main/res/mipmap-hdpi/iclauncher.svg

!02

3. Zip the project directory and upload it to MobSF.

!03

4. After the scan, navigate to the "Recent Scans" page in the MobSF web interface and click on the scan entry and open the icon file in a new browser tab.

!04

5. The XSS payload is executed, confirming the vulnerability.

!05

Other sources

Mobile Security Framework (MobSF) is a security research platform for mobile applications in Android, iOS and Windows Mobile. A Stored Cross-Site Scripting (XSS) vulnerability has been identified in MobSF versions up to and including 4.3.2. The vulnerability arises from improper sanitization of user-supplied SVG files during the Android APK analysis workflow. Version 4.3.3 fixes the issue.

MITRE

Affected Software

2 affected componentsFixes available
pip/mobsf<=4.3.2
4.3.3
Opensecurity Mobile Security Framework<4.3.3

Event History

May 5, 2025
Advisory Published
via GitHub·02:55 PM
CVE Published
via MITRE·06:23 PM
Data Sourced
via MITRE·06:23 PM
DescriptionWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2025-46335?

CVE-2025-46335 has a CVSS v4.0 score of 8.6, indicating it is a high severity vulnerability.

2

How do I fix CVE-2025-46335?

To fix CVE-2025-46335, upgrade MobSF to version 4.3.3 or later.

3

What type of vulnerability is CVE-2025-46335?

CVE-2025-46335 is a Stored Cross-Site Scripting (XSS) vulnerability.

4

Which versions of MobSF are affected by CVE-2025-46335?

CVE-2025-46335 affects MobSF versions 4.3.2 and earlier.

5

What causes the CVE-2025-46335 vulnerability?

The CVE-2025-46335 vulnerability is caused by improper sanitization of user input.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203