id: PYSEC-2026-2152 published: "2026-04-01T21:17:01.147Z" modified: "2026-07-13T05:48:47.583571Z" aliases: - CVE-2026-34531 - GHSA-p44q-vqpr-4xmg details: 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. affected: - package: name: flask-httpauth ecosystem: PyPI purl: pkg:pypi/flask-httpauth ranges: - type: ECOSYSTEM events: - introduced: "0" - fixed: 4.8.1 versions: - 1.0.0 - 1.1.0 - 2.0.0 - 2.1.0 - 2.2.0 - 2.2.1 - 2.3.0 - 2.4.0 - 2.5.0 - 2.6.0 - 2.7.0 - 2.7.1 - 2.7.2 - 3.0.0 - 3.0.1 - 3.0.2 - 3.1.0 - 3.1.1 - 3.1.2 - 3.2.0 - 3.2.1 - 3.2.2 - 3.2.3 - 3.2.4 - 3.3.0 - 4.0.0 - 4.1.0 - 4.2.0 - 4.3.0 - 4.4.0 - 4.5.0 - 4.6.0 - 4.7.0 - 4.8.0 ecosystem_specific: {} references: - type: WEB url: https://lists.debian.org/debian-lts-announce/2026/05/msg00049.html - type: ADVISORY url: https://github.com/miguelgrinberg/Flask-HTTPAuth/releases/tag/v4.8.1 - type: ADVISORY url: https://github.com/miguelgrinberg/Flask-HTTPAuth/security/advisories/GHSA-p44q-vqpr-4xmg - type: FIX url: https://github.com/miguelgrinberg/flask-httpauth/commit/b15ffe9e50e110d7174ccd944f642079e1dcf9ee severity: - type: CVSS_V3 score: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N