Live threats

All CVEs / Miguelgrinberg

CVE-2026-34531Miguelgrinberg Flask-httpauth

High 8.2 No auth needed

Priority
64
CVSS 3.1
8.2
EPSS
—
Auth required
No
Published
Apr 1, 2026
Updated
Oct 26, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-287
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Flask-httpauth.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI flask-httpauth < 4.8.1 4.8.1 pip install "flask-httpauth>=4.8.1"
PyPI flask-httpauth < 4.8.1 4.8.1 pip install "flask-httpauth>=4.8.1"

Per OSV / GitHub Advisories (GHSA-p44q-vqpr-4xmg, PYSEC-2026-2152). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
miguelgrinbergflask-httpauth< 4.8.1

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.