Security Resilience

CVE-2026-34531

Auth Bypass in Miguelgrinberg Flask-Httpauth ≤ 4.8.1

Published
01 April 2026
Modified
26 October 2026
Patch / advisory
CVSS Score v3.1 6.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
EPSS Score 0.0051 37th percentile
Risk Priority 50 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-34531 is a medium-severity Improper Authentication (CWE-287) vulnerability in Miguelgrinberg Flask-Httpauth. Its CVSS base score is 6.5 (Medium).

Operationally, ranked at the 37th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to IA-2 (Identification and Authentication (Organizational Users)) and IA-3 (Device Identification and Authentication) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2026-34531 is a vulnerability in Flask-HTTPAuth, a library that provides Basic, Digest, and Token HTTP authentication for Flask routes. Versions prior to 4.8.1 are affected. The issue occurs when a client requests a token-protected resource without providing a token or with an empty token. In these cases, Flask-HTTPAuth passes an empty string to the application's token verification callback function. If the application has users in its database configured with an empty string as their token, the callback may authenticate the request as one of those users.

A remote attacker without privileges can exploit this vulnerability by sending a request to a token-protected resource either without a token header or with an empty token value. Exploitation requires the target application to have at least one user with an empty token in its database, which represents a misconfiguration. Successful exploitation allows the attacker to impersonate such a user, achieving unauthorized access to protected resources with that user's permissions. The CVSS v3.1 base score is 6.5 (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N), indicating medium severity primarily due to the high attack complexity stemming from the need for specific application misconfigurations.

The vulnerability has been patched in Flask-HTTPAuth version 4.8.1. Administrators should upgrade to this version or later to mitigate the issue. Official details are provided in the GitHub security advisory at https://github.com/miguelgrinberg/Flask-HTTPAuth/security/advisories/GHSA-p44q-vqpr-4xmg, the release notes for v4.8.1 at https://github.com/miguelgrinberg/Flask-HTTPAuth/releases/tag/v4.8.1, and the fixing commit at https://github.com/miguelgrinberg/flask-httpauth/commit/b15ffe9e50e110d7174ccd944f642079e1dcf9ee.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

CVEs Like This One

CVE-2025-15456Shared CWE-287
CVE-2026-39322Shared CWE-287
CVE-2026-60679Shared CWE-287
CVE-2023-29032Shared CWE-287
CVE-2026-97175Shared CWE-287
CVE-2026-7679Shared CWE-287
CVE-2025-64517Shared CWE-287
CVE-2023-37284Shared CWE-287
CVE-2024-2244Shared CWE-287
CVE-2025-0604Shared CWE-287

Affected Assets

miguelgrinberg
flask-httpauth
≤ 4.8.1

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Mandates unique identification and authentication of organizational users before access, directly stopping improper authentication.

Requires unique identification and authentication of devices before establishing connections, preventing unauthenticated device claims.

Mandates unique identification and authentication of non-organizational users, directly addressing the weakness for external actors.

Manages authenticators with verification and secure distribution, reducing opportunities for improper authentication.

Enforces access only after approved authorizations, which presupposes correct authentication has occurred.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

blocks

Mandating segregated approval and oversight for non-human identities reduces the chance that weak or orphaned credentials can be exploited for unauthorized authentication.

blocks

A.8.5 mandates secure authentication techniques, multi-factor authentication, and log-on procedures that directly prevent unauthorized access, fully blocking exploitation of improper authentication weaknesses.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-287, a class-level weakness. Rules are authored against its narrower children: CWE-295, CWE-306.

References