Improper Authentication Affecting flask-httpauth package, versions [,4.8.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Social Trends
EPSS
0.32% (24th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Authentication vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-FLASKHTTPAUTH-15922817
  • published7 Apr 2026
  • disclosed31 Mar 2026
  • creditnpbhatter17

Introduced: 31 Mar 2026

CVE-2026-34531  (opens in a new tab)
CWE-287  (opens in a new tab)

How to fix?

Upgrade Flask-HTTPAuth to version 4.8.1 or higher.

Overview

Flask-HTTPAuth is a HTTP authentication for Flask routes

Affected versions of this package are vulnerable to Improper Authentication in the token verification process. An attacker can gain unauthorized access by submitting a request with a missing or empty token if the application stores empty strings as valid user tokens. This is only exploitable if the application verifies tokens by searching for them in a user database and stores empty strings as user tokens instead of NULL values.

Workaround

This vulnerability can be mitigated by ensuring that no user in the user database has their token set to an empty string; set such tokens to NULL instead.

CVSS Base Scores

version 4.0
version 3.1