CVE-2026-34531Miguelgrinberg Flask-httpauth
High 8.2 No auth needed
Follow: this CVE · Miguelgrinberg · Miguelgrinberg Flask-httpauth We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Flask-httpauth.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| miguelgrinberg | flask-httpauth | < 4.8.1 |
Official advisories
- Security update for python-Flask-HTTPAuth · SUSE · openSUSE-SU-2026:20576-1 · Apr 13, 2026 High
- python311-Flask-HTTPAuth-4.8.1-1.1 on GA media · SUSE · openSUSE-SU-2026:10518-1 · Apr 9, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Product Release Notes
- github.com Mitigation Vendor Advisory
- github.com Patch
- lists.debian.org