# CVE-2026-22797: Auth bypass in keystonemiddleware

> Authenticated attackers can escalate privileges or impersonate users by sending forged identity headers in OpenStack keystonemiddleware deployments using external_oauth2_token.

- **Severity:** Critical 9.9 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 19 Jan 2026
- **Updated:** 10 Sep 2026
- **Also known as:** DEBIAN-CVE-2026-22797, DSA-6104-1, GHSA-4428-9rh9-r27g, UBUNTU-CVE-2026-22797, USN-8008-1, openSUSE-SU-2026:10070-1

## What is CVE-2026-22797?

CVE-2026-22797 is a critical authentication bypass vulnerability in OpenStack keystonemiddleware, published on 19 Jan 2026. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

An issue was discovered in OpenStack keystonemiddleware 10.5 through 10.7 before 10.7.2, 10.8 and 10.9 before 10.9.1, and 10.10 through 10.12 before 10.12.1. The external_oauth2_token middleware fails to sanitize incoming authentication headers before processing OAuth 2.0 tokens. By sending forged identity headers such as X-Is-Admin-Project, X-Roles, or X-User-Id, an authenticated attacker may escalate privileges or impersonate other users. All deployments using the external_oauth2_token middleware are affected.

Weakness: CWE-290 (Authentication Bypass by Spoofing)

## Which versions are affected by CVE-2026-22797?


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `python-keystonemiddleware` | openSUSE:Tumbleweed | All versions | 10.12.0-2.1 |

## How do I fix CVE-2026-22797?

Upgrade to a fixed version.

## Is CVE-2026-22797 being exploited?

There is no known exploitation of CVE-2026-22797 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-22797 and fix it if it is affected.

What it is: CVE-2026-22797 is a critical authentication bypass vulnerability in OpenStack keystonemiddleware, published on 19 Jan 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-22797 in the wild and no public exploit code.

Affected product: OpenStack keystonemiddleware. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. 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.
2. 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.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-22797/ (Markdown: https://insights.sbomify.com/CVE-2026-22797/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-22797
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-22797
- OSV: https://osv.dev/vulnerability/CVE-2026-22797

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-22797/
Summaries are generated and may contain mistakes; the official description above is the record.
