CVE-2025-24803: MobSF Stored Cross-Site Scripting (XSS)
Product: MobSF Version: CFBundleIdentifier value. In the dynamicanalysis.html file you do not sanitize received bundle value from Corellium https://github.com/MobSF/Mobile-Security-Framework-MobSF/blob/d1d3b7a9aeb1a8c8c7c229a3455b19ade9fa8fe0/mobsf/templates/dynamicanalysis/ios/dynamicanalysis.html#L406 Figure 1. Unsanitized bundle As a result, it is possible to break the HTML context and achieve Stored XSS.
Published Feb 5, 2025 · Updated Feb 26, 2025
Affected packages
mobsf
- Ecosystem
- PyPI
- Affected
- <= 4.3.0
- Fixed in
- 4.3.1
- Check
pip show mobsf
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Product: MobSF Version: < 4.3.1 CWE-ID: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') CVSS vector v.4.0: 8.5 (AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N) CVSS vector v.3.1: 8.1 (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N) Description: Stored XSS in the iOS Dynamic Analyzer functionality. Impact: Leveraging this vulnerability would enable performing actions as users, including administrative users. Vulnerable component: dynamic_analysis.html https://github.com/MobSF/Mobile-Security-Framework-MobSF/blob/d1d3b7a9aeb1a8c8c7c229a3455b19ade9fa8fe0/mobsf/templates/dynamic_analysis/ios/dynamic_analysis.html#L406 Exploitation conditions: A malicious application was uploaded to the Correlium. Mitigation: Use escapeHtml() function on the bundle variable. Researcher: Oleg Surnin (Positive Technologies)
Research
Researcher discovered zero-day vulnerability Stored Cross-site Scripting (XSS) in MobSF in iOS Dynamic Analyzer functionality. According to Apple's documentation for bundle ID's, it must contain only alphanumeric characters (A–Z, a–z, and 0–9), hyphens (-), and periods (.). (https://developer.apple.com/documentation/bundleresources/information-property-list/cfbundleidentifier) However, an attacker can manually modify this value in Info.plist file and add special characters to the <key>CFBundleIdentifier</key> value. In the dynamic_analysis.html file you do not sanitize received bundle value from Corellium https://github.com/MobSF/Mobile-Security-Framework-MobSF/blob/d1d3b7a9aeb1a8c8c7c229a3455b19ade9fa8fe0/mobsf/templates/dynamic_analysis/ios/dynamic_analysis.html#L406
*Figure 1. Unsanitized bundle*
As a result, it is possible to break the HTML context and achieve Stored XSS.
Vulnerability reproduction
To reproduce the vulnerability, follow the steps described below.
• Unzip the IPA file of any iOS application. *Listing 1. Unzipping the file*
unzip test.ipa• Modify the value of <key>CFBundleIdentifier</key> by adding restricted characters in the Info.plist file.
*Figure 2. Example of the modified Bundle Identifier*
• Zip the modified IPA file.
*Listing 2. Zipping the file*
zip -r xss.ipa Payload/• Upload the modified IPA file to your virtual device using the Correlium platform.
*Figure 3. Example of the uploaded malicious application*
• Open the XSS functionality and hover the mouse over the Uninstall button of the malicious app.
*Figure 4. Example of the 'Uninstall' button*
*Figure 5. Example of the XSS*
*Figure 6. Example of the vulnerable code*
___________________________
Please, assign all credits to: Oleg Surnin (Positive Technologies)
References
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/security/advisories/GHSA-cxqq-w3x5-7ph3
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/05206e72cae35b311615a70e51e1a946955c5e83
- https://developer.apple.com/documentation/bundleresources/information-property-list/cfbundleidentifier
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/blob/d1d3b7a9aeb1a8c8c7c229a3455b19ade9fa8fe0/mobsf/templates/dynamic_analysis/ios/dynamic_analysis.html#L406
- https://nvd.nist.gov/vuln/detail/CVE-2025-24803
- https://github.com/advisories/GHSA-cxqq-w3x5-7ph3
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-68922
MobSF Vulnerable to Arbitrary File Read via Path Traversal in ZIP Uploads
medium5.5Aug 18, 2026CVE-2026-68923
MobSF's CSRF checks not enforced after Django migration
medium6.5Aug 18, 2026CVE-2026-68924
MobSF Vulnerable to Zip Bomb Denial of Service via Per-File Size Limit Bypass in ZIP/APK Extraction
medium4.9Aug 18, 2026CVE-2026-68927
MobSF has SSRF port restriction bypass in assetlinks_check
low3.0Aug 18, 2026CVE-2026-33545
MobSF has SQL Injection in its SQLite Database Viewer Utils
medium5.3Mar 24, 2026CVE-2026-24490
MobSF has Stored XSS via Manifest Analysis - Dialer Code Host Field
high8.1Jan 26, 2026
