CVE-2024-41955 is a medium-severity (CVSS 5.2) Open Redirect vulnerability in mobsf. 1 public exploit or proof-of-concept reference is indexed, so weaponization risk is real. A fix is available for mobsf — see the affected versions and patch details below.
Mobile Security Framework (MobSF) has an Open Redirect in Login Redirect
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2024-41955.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
mobsfReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.
Description
Impact
What kind of vulnerability is it? Who is impacted?
An open redirect vulnerability exist in MobSF authentication view.
PoC
- Go to http://127.0.0.1:8000/login/?next=//afine.com in a web browser.
- Enter credentials and press "Sign In".
- You will be redirected to afine.com
Users who are not using authentication are not impacted.
Patches
Has the problem been patched? What versions should users upgrade to?
Update to MobSF v4.0.5
Workarounds
Is there a way for users to fix or remediate the vulnerability without upgrading? Disable Authentication
References
Are there any links users can visit to find out more? Fix: https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/fdaad81314f393d324c1ede79627e9d47986c8c8
Reporter
Marcin Węgłowski (AFINE Team)
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐍PyPI | mobsf | all versions | 4.0.5pip install --upgrade 'mobsf==4.0.5' |
Affected Products
mobile security frameworkopensecurityResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for mobsf, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update mobsf to 4.0.5 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2024-41955 is resolved across your whole dependency graph.
Workarounds
Stop reflecting attacker-controlled destinations: resolve every redirect target against an allowlist of paths or hosts you own, prefer a server-side key over a full URL in the request, and reject absolute URLs entirely where the flow only ever needs a relative one.
How to detect CVE-2024-41955
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2024-41955 -u https://target- Template
- Open Redirect in Login Redirect - MobSF
- Severity
- medium
- Impact
- An attacker can exploit this vulnerability to redirect users to malicious websites, leading to potential phishing attacks.
- Remediation
- Update Mobile Security Framework (MobSF) to the latest version that includes the fix from commit fdaad81.
Template by ProjectDiscovery nuclei-templates (Farish), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is CVE-2024-41955 in your dependencies?
Find it across PyPI, including transitive dependencies.