GHSA-vhr5-ggp3-qq85

Suggest an improvement
Source
https://github.com/advisories/GHSA-vhr5-ggp3-qq85
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-vhr5-ggp3-qq85/GHSA-vhr5-ggp3-qq85.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-vhr5-ggp3-qq85
Aliases
Published
2026-03-20T20:50:54Z
Modified
2026-03-27T21:18:53.147613Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
Summary
Ory Oathkeeper has an authentication bypass by usage of untrusted header
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-862"
    ],
    "github_reviewed_at": "2026-03-20T20:50:54Z",
    "nvd_published_at": "2026-03-26T18:16:30Z",
    "severity": "MODERATE",
    "github_reviewed": true
}
References

Affected packages

Go / github.com/ory/oathkeeper

Package

Name
github.com/ory/oathkeeper
View open source insights on deps.dev
Purl
pkg:golang/github.com/ory/oathkeeper

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.40.10-0.20260320084810-e9acca14a04d

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-vhr5-ggp3-qq85/GHSA-vhr5-ggp3-qq85.json"