CVE details
CVE-2026-34531
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.
- Score
- 6.5 medium
- Published
- 2026-04-01
- Links
- NVD · cve.org · Report wrong data
Matched ports (1)
| Port | Package | Version | Status | Maintainer |
|---|---|---|---|---|
| security/py-flask-httpauth | py312-Flask-HTTPAuth | 4.8.0 | unaddressed | rm@FreeBSD.org |
Template for a VuXML entry
Range taken from the CVE record, check it before committing. make newentry in security/vuxml creates the vid.
<vuln vid="FIXME (make newentry)">
<topic>FIXME -- FIXME</topic>
<affects>
<package>
<name>py312-Flask-HTTPAuth</name>
<range><lt>4.8.1</lt></range>
</package>
</affects>
<description>
<body xmlns="http://www.w3.org/1999/xhtml">
<p>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.</p>
</body>
</description>
<references>
<cvename>CVE-2026-34531</cvename>
<url>https://nvd.nist.gov/vuln/detail/CVE-2026-34531</url>
</references>
<dates>
<discovery>2026-04-01</discovery>
<entry>2026-10-27</entry>
</dates>
</vuln>