CVE-2026-34531
MEDIUMFlask-HTTPAuth invokes token verification callback when missing or empty token was given by client
Title source: cnaDescription
Flask-HTTPAuth provides Basic, Digest and Token HTTP authentication for Flask routes. Prior to version 4.8.1, in a situation where the client makes a request to a token protected resource without passing a token, or passing an empty token, Flask-HTTPAuth would invoke the application's token verification callback function with the token argument set to an empty string. If the application had any users in its database with an empty string set as their token, then it could potentially authenticate the client request against any of those users. This issue has been patched in version 4.8.1.
Scores
CVSS v3
6.5
EPSS
0.0007
EPSS Percentile
20.2%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-287
Status
published
Products (3)
miguelgrinberg/flask-httpauth
< 4.8.1
miguelgrinberg/Flask-HTTPAuth
< 4.8.1
pypi/Flask-HTTPAuth
0 - 4.8.1PyPI
Published
Apr 01, 2026
Tracked Since
Apr 02, 2026