Skip to content
Heist/ feed
Back to feed
High

python-flask-httpauth — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-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.

Products
python-flask-httpauth
Affected versions
2.2.1-1, 3.2.1-1, 3.2.4-3, 3.2.4-3.1, 4.5.0-1, 4.5.0-2, 4.5.0-3, 4.5.0-4, 4.8.0-1, 4.8.1-1.1
Fixed versions
Not specified
CVEs
CVE-2026-34531
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:00 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-34531

core-osv · Original source

Published 1 Apr 2026, 21:17 UTC

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.

osv:UBUNTU-CVE-2026-34531

python-flask-httpauth

Fixed versions: Not specified

python-flask-httpauth

Fixed versions: Not specified

python-flask-httpauth

Fixed versions: Not specified

python-flask-httpauth

Fixed versions: Not specified

python-flask-httpauth

Fixed versions: Not specified

python-flask-httpauth

Fixed versions: Not specified

python-flask-httpauth

Fixed versions: Not specified

python-flask-httpauth

Fixed versions: Not specified

Complete source record
{
  "id": "13a4e42670c0b4ee6a01f387b720b0be5ef452eb794ada34a2d60134655d917c",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-34531",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-34531",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-34531",
    "products": [
      {
        "name": {
          "value": "python-flask-httpauth",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.2.1-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-flask-httpauth",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.2.1-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-flask-httpauth",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.2.4-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.2.4-3.1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-flask-httpauth",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.2.4-3.1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.5.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.5.0-2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.5.0-3",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.5.0-4",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-flask-httpauth",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.5.0-4",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-flask-httpauth",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.8.0-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-flask-httpauth",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.8.0-1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "4.8.1-1.1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-flask-httpauth",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.8.0-1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-34531",
      "aliases": [
        "UBUNTU-CVE-2026-34531"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-flask-httpauth",
            "purl": "pkg:deb/ubuntu/python-flask-httpauth?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "2.2.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34531.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-flask-httpauth",
                "binary_version": "2.2.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-flask-httpauth",
            "purl": "pkg:deb/ubuntu/python-flask-httpauth?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "3.2.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34531.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-flask-httpauth",
                "binary_version": "3.2.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-flask-httpauth",
            "purl": "pkg:deb/ubuntu/python-flask-httpauth?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "3.2.4-3",
            "3.2.4-3.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34531.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-flask-httpauth",
                "binary_version": "3.2.4-3.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-flask-httpauth",
            "purl": "pkg:deb/ubuntu/python-flask-httpauth?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "3.2.4-3.1",
            "4.5.0-1",
            "4.5.0-2",
            "4.5.0-3",
            "4.5.0-4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34531.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-flask-httpauth",
                "binary_version": "4.5.0-4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-flask-httpauth",
            "purl": "pkg:deb/ubuntu/python-flask-httpauth?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "4.5.0-4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34531.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-flask-httpauth",
                "binary_version": "4.5.0-4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-flask-httpauth",
            "purl": "pkg:deb/ubuntu/python-flask-httpauth?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "4.8.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34531.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-flask-httpauth",
                "binary_version": "4.8.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-flask-httpauth",
            "purl": "pkg:deb/ubuntu/python-flask-httpauth?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "4.8.0-1",
            "4.8.1-1.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34531.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-flask-httpauth",
                "binary_version": "4.8.1-1.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-flask-httpauth",
            "purl": "pkg:deb/ubuntu/python-flask-httpauth?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "4.8.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34531.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-flask-httpauth",
                "binary_version": "4.8.0-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:00:01.633632818Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-34531"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-34531",
        "https://www.cve.org/CVERecord?id=CVE-2026-34531",
        "https://github.com/miguelgrinberg/Flask-HTTPAuth/security/advisories/GHSA-p44q-vqpr-4xmg",
        "https://github.com/miguelgrinberg/Flask-HTTPAuth/releases/tag/v4.8.1",
        "https://github.com/miguelgrinberg/flask-httpauth/commit/b15ffe9e50e110d7174ccd944f642079e1dcf9ee"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-34531",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 360147,
  "published_at": "2026-04-01T21:17:00+00:00"
}