CVE-2026-33495: Ory Oathkeeper Authentication Bypass via Untrusted Header

github.com/ory/oathkeeper Updated 20 Mar 2026

Summary

20/03/2026
Yes i
Moderate
6.5

CVE-2026-33495: Ory Oathkeeper has an authentication bypass by usage of untrusted header. Affects github.com/ory/oathkeeper versions < 0.40.10-0.20260320084810-e9acca14a04d. Fixed in 0.40.10-0.20260320084810-e9acca14a04d. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Ory Oathkeeper is an open-source identity and access proxy that enables secure access to APIs and microservices. It is designed to enforce access policies and manage authentication and authorization. Oathkeeper is often deployed behind components like CDNs, WAFs, or reverse proxies, which can affect how it processes incoming requests. This vulnerability arises from the improper handling of the 'X-Forwarded-Proto' header, which can lead to authentication bypass under certain configurations.

Vulnerability Detail

The vulnerability in Ory Oathkeeper stems from its failure to respect the configuration option 'serve.proxy.trust_forwarded_headers'. This option is intended to control whether Oathkeeper should trust headers like 'X-Forwarded-Proto'. When this configuration is set to false, Oathkeeper should not consider these headers, but it does so anyway. This flaw allows an attacker to manipulate the 'X-Forwarded-Proto' header to trigger different access rules, potentially bypassing authentication mechanisms. The preconditions for exploitation include having distinct rules for HTTP and HTTPS requests and the ability to send crafted requests with the manipulated header.

How To Fix

Latest published version: v0.40.9 as of 23 Oct 2026

go get github.com/ory/oathkeeper@v0.40.9

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.40.10-0.20260320084810-e9acca14a04d

This is the first release that contains the fix.

go get github.com/ory/oathkeeper@v0.40.10-0.20260320084810-e9acca14a04d

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, it is advisable to drop any unexpected headers as early as possible when handling requests, preferably in the WAF or reverse proxy layer. This can help mitigate the risk of exploitation until the package is updated.

Conclusion

The vulnerability identified as CVE-2026-33495 in Ory Oathkeeper poses a risk of authentication bypass due to improper handling of the 'X-Forwarded-Proto' header. Users are encouraged to upgrade to the fixed version to mitigate this risk and implement workarounds if immediate updates are not feasible.

See every vulnerability recorded for github.com/ory/oathkeeper →

Share this vulnerability

FAQ

The CVSS score for this vulnerability is 6.5, indicating a moderate level of severity.

If exploited, this vulnerability could allow unauthorized access to resources by bypassing authentication checks.

You can use Vulert's playground at Vulert Scanner to check if your application is affected without needing to sign up.

If an immediate upgrade is not possible, implement the recommended workaround by dropping unexpected headers in your WAF or reverse proxy.

You can find more information about Ory Oathkeeper on its official GitHub repository and documentation pages.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/ory/oathkeeper.

How To Fix

Latest published version: v0.40.9 as of 23 Oct 2026

go get github.com/ory/oathkeeper@v0.40.9

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.40.10-0.20260320084810-e9acca14a04d

This is the first release that contains the fix.

go get github.com/ory/oathkeeper@v0.40.10-0.20260320084810-e9acca14a04d

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback