Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| miguelgrinberg | Flask-HTTPAuth | < 4.8.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-flask-httpauth | 4.8.1-1.1 | — |
| Debian 13 | python-flask-httpauth | No fix yet | — |
| Debian 12 | python-flask-httpauth | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | python-flask-httpauth | No fix yet | — |
| Ubuntu 26.04 LTS | python-flask-httpauth | No fix yet | — |
| Ubuntu 25.10 | python-flask-httpauth | No fix yet | — |
| Ubuntu 24.04 LTS | python-flask-httpauth | No fix yet | — |
| Ubuntu 22.04 LTS | python-flask-httpauth | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | python-flask-httpauth | No fix yet | — |
| Ubuntu 18.04 LTS | python-flask-httpauth | No fix yet | — |
| Ubuntu 16.04 LTS | python-flask-httpauth | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-Flask-HTTPAuth | 4.8.1-1.1 | openSUSE-SU-2026:10518-1 |
| openSUSE Leap 16.0 | python-Flask-HTTPAuth | 4.8.0-bp160.2.1 | openSUSE-SU-2026:20576-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | flask-httpauth | < 4.8.1 | 4.8.1 | GHSA-p44q-vqpr-4xmg |
Advisories 2
- openSUSE-SU-2026:20576-1 Security update for python-Flask-HTTPAuth SUSE / openSUSE Security Updates · Apr 22, 2026
- openSUSE-SU-2026:10518-1 python311-Flask-HTTPAuth-4.8.1-1.1 on GA media SUSE / openSUSE Security Updates · Apr 10, 2026