{"answers":{"affected":"3 open source packages ship an affected version, including flask-httpauth and Flask-HTTPAuth. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-34531 in the wild and no public exploit code.","fix":"Upgrade flask-httpauth to 4.8.1 or later.","what":"CVE-2026-34531 is a medium-severity authentication bypass vulnerability in miguelgrinberg Flask-HTTPAuth, published on 1 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-34531 and fix it if it is affected.\n\nWhat it is: CVE-2026-34531 is a medium-severity authentication bypass vulnerability in miguelgrinberg Flask-HTTPAuth, published on 1 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-34531 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- flask-httpauth (PyPI): affected all versions; fixed in 4.8.1\n- flask-httpauth (PyPI): affected all versions; fixed in 4.8.1\n- Flask-HTTPAuth (PyPI): affected all versions; fixed in 4.8.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-34531/ (Markdown: https://insights.sbomify.com/CVE-2026-34531/index.md)","id":"CVE-2026-34531","markdown":"https://insights.sbomify.com/CVE-2026-34531/index.md","name":"CVE-2026-34531","record":{"aliases":["DEBIAN-CVE-2026-34531","GHSA-p44q-vqpr-4xmg","PYSEC-2026-2152","UBUNTU-CVE-2026-34531","openSUSE-SU-2026:10518-1","openSUSE-SU-2026:20576-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["account_takeover"],"network_reachable":"yes","non_default_config":true,"product_category":"Flask authentication library","requires_auth":"none","summary":"Attackers can bypass authentication if the application database contains users with empty tokens, allowing unauthorized access to protected resources.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"flask-httpauth","vendor":"miguelgrinberg"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"description":"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.","ecosystems":["PyPI","openSUSE:Leap 16.0","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Flask-HTTPAuth invokes token verification callback when missing or empty token was given by client","id":"CVE-2026-34531","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"auth_bypass","year":"2026"},"n_packages":5,"n_references":3,"next":{"headline":"Parse Server: Cloud function validator bypass via prototype chain traversal","id":"CVE-2026-34532"},"packages":[{"ecosystem":"PyPI","fixed":["4.8.1"],"introduced":["0"],"last_affected":[],"package":"Flask-HTTPAuth","purl":null,"source":"GHSA-p44q-vqpr-4xmg"},{"ecosystem":"PyPI","fixed":["4.8.1"],"introduced":["0"],"last_affected":[],"package":"flask-httpauth","purl":"pkg:pypi/flask-httpauth","source":"GHSA-p44q-vqpr-4xmg"},{"ecosystem":"PyPI","fixed":["4.8.1"],"introduced":["0"],"last_affected":[],"package":"flask-httpauth","purl":"pkg:pypi/flask-httpauth","source":"PYSEC-2026-2152"},{"ecosystem":"openSUSE:Leap 16.0","fixed":["4.8.0-bp160.2.1"],"introduced":["0"],"last_affected":[],"package":"python-Flask-HTTPAuth","purl":"pkg:rpm/opensuse/python-Flask-HTTPAuth\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-SU-2026:20576-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.8.1-1.1"],"introduced":["0"],"last_affected":[],"package":"python-Flask-HTTPAuth","purl":"pkg:rpm/opensuse/python-Flask-HTTPAuth\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10518-1"}],"prev":{"headline":"File Browser is vulnerable to Stored Cross-Site Scripting via text/template branding injection","id":"CVE-2026-34530"},"products":["Flask-HTTPAuth"],"published":"2026-04-01","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-28","vendors":["miguelgrinberg"]},"summary":"Attackers can bypass authentication if the application database contains users with empty tokens, allowing unauthorized access to protected resources.","url":"https://insights.sbomify.com/CVE-2026-34531/"}