Flask-HTTPAuth invokes token verification callback when missing or empty token was given by client
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- Low · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-287.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| miguelgrinberg | Flask-HTTPAuth | before 4.8.1 | 4.8.1 | Patch available | CNA |
| — | Flask-HTTPAuth (PyPI) | before 4.8.1 | 4.8.1 | Patch available | GHSA-p44q-vqpr-4xmg |
- Flask-HTTPAuth Vendormiguelgrinberg Affected before 4.8.1 Fixed in 4.8.1 Patch available CNA
- Flask-HTTPAuth (PyPI) Vendor— Affected before 4.8.1 Fixed in 4.8.1 Patch available GHSA-p44q-vqpr-4xmg
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:miguelgrinberg:flask-httpauth:*:*:*:*:*:python:*:* | before 4.8.1 | Vulnerable | miguelgrinberg |
- cpe:2.3:a:miguelgrinberg:flask-httpauth:*:*:*:*:*:python:*:* Versions before 4.8.1 Vulnerable ·miguelgrinberg
Remediation
- Fix · CNA Flask-HTTPAuth (miguelgrinberg) Fixed in 4.8.1
- Fix · GHSA-p44q-vqpr-4xmg Flask-HTTPAuth (PyPI) Fixed in 4.8.1 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-34531
- 2026-10-03 Alias added: GHSA-p44q-vqpr-4xmg
References
Patch 1
Advisory 2
Sources
- CVE-2026-34531 · CVE Program
- CVE-2026-34531 · NVD
- FIRST EPSS
- GHSA-p44q-vqpr-4xmg · GitHub Advisory Database · CC BY 4.0
- CVE-2026-34531 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences