# CVE-2026-33495: Ory Oathkeeper has an authentication bypass by usage of untrusted header

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **CWE:** CWE-862
- **Aliases:** GHSA-vhr5-ggp3-qq85, GO-2026-4810
- **Published:** 2026-03-20T20:50:54.000Z
- **Modified:** 2026-06-17T10:37:35.927Z

## Who should check

- Projects that depend on Go package github.com/ory/oathkeeper (\< 0.40.10-0.20260320084810-e9acca14a04d)
- Anyone running ory oathkeeper \< 26.2.0

## Description

ORY Oathkeeper is an Identity & Access Proxy (IAP) and Access Control Decision API that authorizes HTTP requests based on sets of Access Rules. Ory Oathkeeper is often deployed behind other components like CDNs, WAFs, or reverse proxies. Depending on the setup, another component might forward the request to the Oathkeeper proxy with a different protocol (http vs. https) than the original request. In order to properly match the request against the configured rules, Oathkeeper considers the \`X-Forwarded-Proto\`  header when evaluating rules. The configuration option \`serve.proxy.trust\_forwarded\_headers\` (defaults to false) governs whether this and other \`X-Forwarded-\*\` headers should be trusted. Prior to version 26.2.0, Oathkeeper did not properly respect this configuration, and would always consider the \`X-Forwarded-Proto\`  header. In order for an attacker to abuse this, an installation of Ory Oathkeeper needs to have distinct rules for HTTP and HTTPS requests. Also, the attacker needs to be able to trigger one but not the other rule. In this scenario, the attacker can send the same request but with the \`X-Forwarded-Proto\`  header in order to trigger the other rule. We do not expect many configurations to meet these preconditions. Version 26.2.0 contains a patch. Ory Oathkeeper will correctly respect the \`serve.proxy.trust\_forwarded\_headers\` configuration going forward, thereby eliminating the attack scenario. We recommend upgrading to a fixed version even if the preconditions are not met. As an additional mitigation, it is generally recommended to drop any unexpected headers as early as possible when a request is handled, e.g. in the WAF.

## Affected and fixed versions

- Go `github.com/ory/oathkeeper`: affected \< 0.40.10-0.20260320084810-e9acca14a04d; fixed 0.40.10-0.20260320084810-e9acca14a04d (osv)
- ory oathkeeper: \< 26.2.0 (cvelist)

## Mitigation

- Upgrade github.com/ory/oathkeeper to 0.40.10-0.20260320084810-e9acca14a04d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-33495. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-33495.md
Affected: github.com/ory/oathkeeper < 0.40.10-0.20260320084810-e9acca14a04d
Fixed in: 0.40.10-0.20260320084810-e9acca14a04d

Steps:
1. Search this machine and project for github.com/ory/oathkeeper (Go), ory oathkeeper: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-33495 being exploited?

There is no confirmed exploitation: CVE-2026-33495 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-33495?

Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, no login needed.

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

github.com/ory/oathkeeper \< 0.40.10-0.20260320084810-e9acca14a04d.

### Is there a fix for CVE-2026-33495?

Yes. Fixed in 0.40.10-0.20260320084810-e9acca14a04d. Upgrade github.com/ory/oathkeeper to 0.40.10-0.20260320084810-e9acca14a04d or later.

### How do I check if I'm affected by CVE-2026-33495?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/ory/oathkeeper/security/advisories/GHSA-vhr5-ggp3-qq85>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-33495>
- patch: <https://github.com/ory/oathkeeper/commit/e9acca14a04d246250557550065e4b4576525bd5>
- other: <https://github.com/ory/oathkeeper>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-33495>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-vhr5-ggp3-qq85> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-4810> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-33495> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-33495>
