Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-34531 EUVD-2026-18056GHSA-p44q-vqpr-4xmgPYSEC-2026-2152

Flask-HTTPAuth invokes token verification callback when missing or empty token was given by client

Published Apr 1, 2026 · Updated May 28, 2026 · Assigned by GitHub_M

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
PyPI flask-httpauth < 4.8.1 4.8.1 GHSA-p44q-vqpr-4xmg

Advisories 2

References