# CVE-2026-34531: Flask-HTTPAuth invokes token verification callback when missing or empty token was given by client

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-03-31T23:48:02.000Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-p44q-vqpr-4xmg, PYSEC-2026-2152
- Weaknesses: CWE-287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- miguelgrinberg Flask-HTTPAuth: < 4.8.1; before 4.8.1
- flask-httpauth (PyPI): before 4.8.1

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N`
- NVD: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N`

## References

- <https://github.com/miguelgrinberg/Flask-HTTPAuth/security/advisories/GHSA-p44q-vqpr-4xmg> (advisory, mitigation, vendor-advisory, web)
- <https://github.com/miguelgrinberg/flask-httpauth/commit/b15ffe9e50e110d7174ccd944f642079e1dcf9ee> (fix, patch, web)
- <https://github.com/miguelgrinberg/Flask-HTTPAuth/releases/tag/v4.8.1> (advisory, product, release-notes, web)
- <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)

## Sources

- CVE List: [CVE-2026-34531](https://www.cve.org/CVERecord?id=CVE-2026-34531), CVE Terms of Use, modified 2026-05-28
- GitHub Advisory Database: [GHSA-p44q-vqpr-4xmg](https://github.com/advisories/GHSA-p44q-vqpr-4xmg), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-34531](https://nvd.nist.gov/vuln/detail/CVE-2026-34531), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-2152](https://osv.dev/vulnerability/PYSEC-2026-2152), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-34531 · Whole record: https://cve.day/CVE-2026-34531.json · Rebuilt by cve.day 2026-11-25T22:59:17.738Z
