CVE-2026-34531
HIGH 8.2CVSS 3.1Flask-HTTPAuth invokes token verification callback when missing or empty token was given by client
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.
- Published
- 1 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-287
- Also known as
- GHSA-p44q-vqpr-4xmgPYSEC-2026-2152
- Sources
- NVDJSONOSV GHSA-p44q-vqpr-4xmgJSONOSV PYSEC-2026-2152JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N |
| OSV | PyPA | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | miguelgrinberg | flask-httpauthcpe:2.3:a:miguelgrinberg:flask-httpauth:*:*:*:*:*:python:*:* |
< 4.8.1 | 4.8.1 |
| OSV | PyPI | flask-httpauth | < 4.8.1 | 4.8.1 |
References
- https://github.com/miguelgrinberg/Flask-HTTPAuth/releases/tag/v4.8.1 · Product, Release Notes, WEB, ADVISORY
- https://github.com/miguelgrinberg/Flask-HTTPAuth/security/advisories/GHSA-p44q-vqpr-4xmg · Mitigation, Vendor Advisory, WEB, ADVISORY
- https://github.com/miguelgrinberg/flask-httpauth/commit/b15ffe9e50e110d7174ccd944f642079e1dcf9ee · Patch, WEB, FIX
- https://lists.debian.org/debian-lts-announce/2026/05/msg00049.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-34531 · ADVISORY
- https://github.com/miguelgrinberg/Flask-HTTPAuth · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 1 Apr 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 1 Apr 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 31 Mar 2026)