CVE-2026-34531

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

Published Apr 1, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4605-1 python-flask-httpauth security update
Github GHSA Github GHSA GHSA-p44q-vqpr-4xmg Flask-HTTPAuth invokes token verification callback when missing or empty token was given by client
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:a:miguelgrinberg:flask-httpauth:*:*:*:*:*:python:*:*
Type Values Removed Values Added
First Time appeared Miguelgrinberg
Miguelgrinberg flask-httpauth
Vendors & Products Miguelgrinberg
Miguelgrinberg flask-httpauth
Type Values Removed Values Added
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.
Title Flask-HTTPAuth invokes token verification callback when missing or empty token was given by client
Weaknesses CWE-287
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 28, 2026, 5:14 PM
Reserved
Mar 30, 2026, 4:03 PM
Status
Modified
Published
Apr 1, 2026, 9:17 PM
Modified
Oct 26, 2026, 10:10 PM