GHSA-4mq7-pvjg-xp2r

Suggest an improvement
Source
https://github.com/advisories/GHSA-4mq7-pvjg-xp2r
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-4mq7-pvjg-xp2r/GHSA-4mq7-pvjg-xp2r.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-4mq7-pvjg-xp2r
Aliases
Published
2026-03-20T20:51:07Z
Modified
2026-03-27T21:19:24Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Ory Oathkeeper has an authentication bypass by cache key confusion
Details

Description

Ory Oathkeeper is vulnerable to authentication bypass due to cache key confusion. The oauth2_introspection authenticator cache does not distinguish tokens that were validated with different introspection URLs. An attacker can therefore legitimately use a token to prime the cache, and subsequently use the same token for rules that use a different introspection server.

Preconditions

Ory Oathkeeper has to be configured with multiple oauth2_introspection authenticator servers, each accepting different tokens. The authenticators also must be configured to use caching. An attacker has to have a way to gain a valid token for one of the configured introspection servers.

Mitigation

Ory Oathkeeper now includes the introspection server URL in the cache key, preventing confusion of tokens.

Update to the patched version of Ory Oathkeeper. If that is not immediately possible, disable caching for oauth2_introspection authenticators.

Database specific
{
    "cwe_ids":  [
        "CWE-1289",
        "CWE-305"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-03-20T20:51:07Z",
    "nvd_published_at":  "2026-03-26T18:16:30Z",
    "severity":  "HIGH"
}
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
0 Unknown introduced version / All previous versions are affected
Fixed
0.40.10-0.20260320084801-198a2bc82a99

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-4mq7-pvjg-xp2r/GHSA-4mq7-pvjg-xp2r.json"