CVE-2025-58065: Flask appbuilder Authentication Bypass Vulnerability
MODERATECVE-2025-58065 is a MODERATE (CVSS 6.5) authentication bypass vulnerability (CWE-287: Improper Authentication) affecting Flask appbuilder libraries in the PyPI ecosystem. The issue involves flask app builder has an authentication bypass vulnerability when using non auth_db methods. Remediation is available by upgrading affected packages to version 4.8.1.
CVE-2025-58065 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2025-58065
To remediate this vulnerability, upgrade all affected Flask appbuilder dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install flask-appbuilder>=4.8.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show flask-appbuilder
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-58065, inspect your installed packages using pip:
pip show flask-appbuilder
Analyze the terminal output to locate any version of Flask appbuilder in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.8.1), your application is affected.
Note: The pip show flask-appbuilder command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Flask appbuilder, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-58065 Affected Flask appbuilder Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
flask-appbuilder
|
PyPI |
< 4.8.1
|
4.8.1
|
References
Frequently Asked Questions
What is CVE-2025-58065?
Which Flask appbuilder versions are affected?
What version fixes CVE-2025-58065?
Is flask-appbuilder affected?
What is the CVSS score of CVE-2025-58065?
What CWE is associated with CVE-2025-58065?
How can I check PyPI dependencies for CVE-2025-58065?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-765j-9r45-w2q2",
"modified" : "2025-09-13T04:44:01Z",
"published" : "2025-09-11T16:51:57Z",
"aliases" : [ "CVE-2025-58065" ],
"summary" : "Flask App Builder has an Authentication Bypass vulnerability when using non AUTH_DB methods",
"details" : "### Impact\nWhen Flask-AppBuilder is configured to use OAuth, LDAP, or other non-database authentication methods, the password reset endpoint remains registered and accessible, despite not being displayed in the user interface. This allows an enabled user to reset their password and be able to create JWT tokens even after the user is disabled on the authentication provider.\n\n### Patches\nUpgrade to Flask-AppBuilder version 4.8.1 or later\n\n### Workarounds\nIf immediate upgrade is not possible:\n- Manually disable password reset routes in the application configuration\n- Implement additional access controls at the web server or proxy level to block access to the reset my password URL.\n- Monitor for suspicious password reset attempts from disabled accounts",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "flask-appbuilder"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.8.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/dpgaspar/Flask-AppBuilder/security/advisories/GHSA-765j-9r45-w2q2"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-58065"
}, {
"type" : "WEB",
"url" : "https://github.com/dpgaspar/Flask-AppBuilder/pull/2384"
}, {
"type" : "WEB",
"url" : "https://github.com/dpgaspar/Flask-AppBuilder/commit/a942a9cc5775752f9a02f97fd8198dd288fa93ee"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/dpgaspar/Flask-AppBuilder"
}, {
"type" : "WEB",
"url" : "https://github.com/dpgaspar/Flask-AppBuilder/releases/tag/v4.8.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-11T16:51:57Z",
"nvd_published_at" : "2025-09-11T18:15:35Z"
}
}