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

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2026-03-20T20:50:54.000Z
- Modified: 2026-06-17T10:37:35.927Z
- Also known as: GHSA-vhr5-ggp3-qq85, GO-2026-4810
- Weaknesses: CWE-862
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- ory oathkeeper: < 26.2.0; before 26.2.0
- github.com/ory/oathkeeper (Go): before 0.40.10-0.20260320084810-e9acca14a04d

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/ory/oathkeeper/security/advisories/GHSA-vhr5-ggp3-qq85> (advisory, mitigation, vendor-advisory, web)
- <https://github.com/ory/oathkeeper/commit/e9acca14a04d246250557550065e4b4576525bd5> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33495> (advisory)
- <https://github.com/ory/oathkeeper> (package)

## Sources

- CVE List: [CVE-2026-33495](https://www.cve.org/CVERecord?id=CVE-2026-33495), CVE Terms of Use, modified 2026-03-26
- GitHub Advisory Database: [GHSA-vhr5-ggp3-qq85](https://github.com/advisories/GHSA-vhr5-ggp3-qq85), CC-BY-4.0, modified 2026-03-27
- Go Vulnerability Database: [GO-2026-4810](https://pkg.go.dev/vuln/GO-2026-4810), CC-BY-4.0, modified 2026-03-23
- NVD: [CVE-2026-33495](https://nvd.nist.gov/vuln/detail/CVE-2026-33495), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33495 · Whole record: https://cve.day/CVE-2026-33495.json · Rebuilt by cve.day 2026-11-25T22:59:17.088Z
