Skip to main content
← All vulnerabilities
CVE-2026-34531PYSEC-2026-2152GHSA-P44Q-VQPR-4XMG

Flask-HTTPAuth invokes token verification callback when missing or empty token was given by client

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.8.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • miguelgrinberg Flask-HTTPAuth

    fixed in 4.8.1

  • flask-httpauthPyPI

    fixed in 4.8.1

References 3

GitHub · miguelgrinberg/Flask-HTTPAuth

GitHub · miguelgrinberg/flask-httpauth