Skip to content

[CVE-2026-96446] Security vulnerability in Keycloak 26.7.3 — PAR single-use bypass via prompt=none #53111

Closed

Description

@abstractj

Describe the bug

A flaw was found in Keycloak's Pushed Authorization Request (PAR) implementation. The single-use enforcement for PAR request URIs (required by RFC 9126 §4) is bypassed on the silent authentication path (prompt=none). When an existing SSO session causes the authorization endpoint to short-circuit directly to AuthenticationManager.redirectAfterSuccessfulFlow(), the PAR consumption logic in OIDCLoginProtocol.authenticationComplete() is never invoked, and the pushed request object is never removed from storage. The request_uri remains valid and can be replayed to mint multiple distinct, fully redeemable authorization codes for the same user, violating the single-use guarantee required for FAPI-2 and RFC 9126 compliant deployments.

Version

Reproduced on Keycloak 26.7.3. Present on main branch.

Expected behavior

A PAR request_uri must be consumed — removed from storage — on the first successful authorization code issuance, regardless of whether the user was authenticated interactively or through an existing SSO session. A second authorization request using the same request_uri must be rejected.

Actual behavior

When an existing SSO session satisfies the authorization request, authenticationComplete() is not called and AuthzEndpointParParser.removeRequestObject() is never invoked. The pushed request object remains in storage and the request_uri can be replayed any number of times, each call producing a distinct authorization code that can be exchanged for a valid token set.

Anything else?

  • Root cause: OIDCLoginProtocol.authenticationComplete() (line 604) calls AuthzEndpointParParser.removeRequestObject() to consume the PAR object, but this method is only reached via the interactive login flow through AuthenticationProcessor.authenticationComplete(). The silent path via AuthenticationManager.redirectAfterSuccessfulFlow() bypasses loginProtocol.authenticationComplete() entirely.
  • RFC 9126 §4 states: "The authorization server MUST NOT allow the request_uri to be used more than once."
  • This affects deployments relying on FAPI-2 or RFC 9126 single-use PAR guarantees.

This issue was originally tracked in the private repository. Migrated by @abstractj.

Activity

  1. added
    area/oidc
    priority/important
    kind/cve
    on Sep 23, 2026
  2. added theissue type on Sep 23, 2026
  3. EVIL0RD commented on Sep 23, 2026

    @EVIL0RD

    Happy to assist with validation or provide additional details if needed.

  4. added
    severity/medium
    on Sep 30, 2026
  5. abstractj commented on Sep 30, 2026

    @abstractj
    ContributorAuthor

    @EVIL0RD thank you, PR available for your review #53365

  6. added 2 commits that reference this issue on Sep 30, 2026
    0ee4bb6
    41ec4d3
  7. 14 remaining items

  8. removed their assignment
    on Oct 7, 2026
  9. added a commit that references this issue on Oct 7, 2026
    8d56019
  10. added a commit that references this issue on Oct 8, 2026
    bfab889
  11. added 5 commits that reference this issue on Oct 8, 2026
    c50ce0c
    d5b17c6
    3659518
    b36605c
    0f206a3
  12. added a commit that references this issue on Oct 9, 2026
    1272250
  13. added 2 commits that reference this issue on Oct 22, 2026
    1e7c772
    8b92073
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/oidckind/cvepriority/importantrelease/26.6.8release/26.8.1release/27.0.0severity/mediumteam/core-protocols

Type

Fields

No fields configured for cve.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions