PYSEC-2026-2152

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/flask-httpauth/PYSEC-2026-2152.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-2152
Aliases
Published
2026-04-01T21:17:01.147Z
Modified
2026-07-13T07:15:25.077686192Z
Severity
  • 8.2 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N CVSS Calculator
Summary
[none]
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.

References

Affected packages

PyPI / flask-httpauth

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.8.1

Affected versions

1.*
1.0.0
1.1.0
2.*
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.*
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.*
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

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/flask-httpauth/PYSEC-2026-2152.yaml"