PyPA Advisory Database
PYSEC-2026-1382
Flask-AppBuilder's login form allows browser to cache sensitive fields
Details
Impact
Auth DB login form default cache directives allows browser to locally store sensitive data. This can be an issue on environments using shared computer resources.
Patches
Upgrade flask-appbuilder to version 4.5.1
Workarounds
If upgrading is not possible configure your web server to send the following HTTP headers for /login: "Cache-Control": "no-store, no-cache, must-revalidate, max-age=0" "Pragma": "no-cache" "Expires": "0"
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | flask-appbuilder | All versions before 4.5.1 (fixed in 4.5.1) |
References
- https://github.com/dpgaspar/Flask-AppBuilder/security/advisories/GHSA-fw5r-6m3x-rh7p
- https://nvd.nist.gov/vuln/detail/CVE-2024-45314
- https://github.com/dpgaspar/Flask-AppBuilder/commit/3030e881d2e44f4021764e18e489fe940a9b3636
- https://github.com/dpgaspar/Flask-AppBuilder
- https://pypi.org/project/flask-appbuilder
- https://github.com/advisories/GHSA-fw5r-6m3x-rh7p