CVE-2026-33495: Github.com/ory/oathkeeper Authentication Bypass Vulnerability

MODERATE
Advisory Identifier: GHSA-vhr5-ggp3-qq85
CVSS 6.5
CWE-862
Published
Advisory Summary

CVE-2026-33495 is a MODERATE (CVSS 6.5) authentication bypass vulnerability (CWE-862: Missing Authorization) affecting Github.com/ory/oathkeeper libraries in the Go ecosystem. The issue involves ory oathkeeper has an authentication bypass by usage of untrusted header. Remediation is available by upgrading affected packages to version 0.40.10-0.20260320084810-e9acca14a04d.

CVE-2026-33495 at a Glance

CVE Identifier CVE-2026-33495
GHSA Identifier GHSA-vhr5-ggp3-qq85
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-862: Missing Authorization
Affected Product Github.com/ory/oathkeeper
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-33495

To remediate this vulnerability, upgrade all affected Github.com/ory/oathkeeper dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/ory/oathkeeper fixed: 0.40.10-0.20260320084810-e9acca14a04d
Upgrade github.com/ory/oathkeeper to 0.40.10-0.20260320084810-e9acca14a04d
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/ory/oathkeeper

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-33495, inspect your project dependencies for Github.com/ory/oathkeeper:

inspect dependencies for github.com/ory/oathkeeper

Analyze the terminal output to locate any version of Github.com/ory/oathkeeper in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.40.10-0.20260320084810-e9acca14a04d), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-862: Missing Authorization, where the product does not perform an authorization check when an actor attempts to access a resource or perform an action. In Github.com/ory/oathkeeper, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Description 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. Oathkeeper did not properly respect this configuration, and would always consider the `X-Forwarded-Proto` header. ## Preconditions 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. ## Mitigation It is generally recommended to drop any unexpected headers as early as possible when a request is handled, e.g. in the WAF. 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.

CVE-2026-33495 Affected Github.com/ory/oathkeeper Versions

1 component(s)
Fixed Versions:
0.40.10-0.20260320084810-e9acca14a04d
Product / Package Ecosystem Affected Versions Fixed Version
github.com/ory/oathkeeper
Go
< 0.40.10-0.20260320084810-e9acca14a04d
0.40.10-0.20260320084810-e9acca14a04d

References

Frequently Asked Questions

What is CVE-2026-33495?
CVE-2026-33495 is a security vulnerability in Github.com/ory/oathkeeper involving Ory Oathkeeper has an authentication bypass by usage of untrusted header under CWE-862: Missing Authorization.
Which Github.com/ory/oathkeeper versions are affected?
Affected versions include releases prior to 0.40.10-0.20260320084810-e9acca14a04d across affected packages: github.com/ory/oathkeeper.
What version fixes CVE-2026-33495?
Upgrading to 0.40.10-0.20260320084810-e9acca14a04d (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/ory/oathkeeper affected?
Yes, github.com/ory/oathkeeper is affected in releases prior to 0.40.10-0.20260320084810-e9acca14a04d. Upgrade your dependency to 0.40.10-0.20260320084810-e9acca14a04d or later.
What is the CVSS score of CVE-2026-33495?
CVE-2026-33495 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2026-33495?
CVE-2026-33495 is classified under CWE-862: Missing Authorization (The product does not perform an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Go dependencies for CVE-2026-33495?
Run the dependency tree command: 'inspect dependencies for github.com/ory/oathkeeper'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vhr5-ggp3-qq85",
  "modified" : "2026-03-27T20:58:41Z",
  "published" : "2026-03-20T20:50:54Z",
  "aliases" : [ "CVE-2026-33495" ],
  "summary" : "Ory Oathkeeper has an authentication bypass by usage of untrusted header",
  "details" : "## Description\n\nOry 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. Oathkeeper did not properly respect this configuration, and would always consider the `X-Forwarded-Proto`  header.\n\n## Preconditions\n\nIn 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.\n\n## Mitigation\n\nIt is generally recommended to drop any unexpected headers as early as possible when a request is handled, e.g. in the WAF.\n\nOry 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/ory/oathkeeper"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.40.10-0.20260320084810-e9acca14a04d"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ory/oathkeeper/security/advisories/GHSA-vhr5-ggp3-qq85"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-33495"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ory/oathkeeper/commit/e9acca14a04d246250557550065e4b4576525bd5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ory/oathkeeper"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-862" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-20T20:50:54Z",
    "nvd_published_at" : "2026-03-26T18:16:30Z"
  }
}