mediumVulnerability

GHSA-xmj9-7625-f634

### Affected Components - DSF FHIR Server with enabled [bearer-token authentication](https://dsf.dev/operations/v2.1.0/fhir/oidc.html) or [back-channel logout](https://dsf.dev/operations/v2.1.0/fhir/oidc.html). - DSF BPE Server with enabled [bearer-token authentication](https://dsf.dev/operations/v2.1.0/bpe/oidc.html) or [back-channel logout](https://dsf.dev/operations/v2.1.0/bpe/oidc.html). - DSF BPE Server API v2 process plugins using [FHIR client connections](https://dsf.dev/operations/v2.1.0/bpe/fhir-client-connections.html) with configured OIDC authentication. ### Summary - The OIDC JWKS and Metadata Document caches used an inverted time comparison (`isBefore` instead of `isAfter`), causing the cache to **never return cached values**. Every incoming request triggered a fresh HTTP fetch of the OIDC Metadata Document and JWKS keys from the OIDC provider. - The OIDC token cache for the [FHIR client connections](https://dsf.dev/operations/v2.1.0/bpe/fhir-client-connections.html) used an inverted time comparison (`isBefore` instead of `isAfter`), causing the cache to **never invalidate**. Every incoming request returned the same OIDC token even if expired. ### Impact - **Performance:** Every OIDC-authenticated request added network round-trips to the OIDC provider, increasing latency - **Reliability:** Cached OIDC tokens become unusable after expiration and can only be invalidated by restart of the BPE. If the OIDC provider is temporarily unreachable, all requests fail immediately instead of using cached keys - **Load:** Unnecessary load on the OIDC provider, potentially causing rate limiting ### Fix (commits 31c2e974d, d3ca59b4d) - Fixed cache timeout comparison from `isBefore` to `isAfter` in `BaseOidcClientWithCache` (configuration and JWKS caches) and `OidcClientWithCache` (configuration, JWKS, and access token caches) - Added configurable cache timeouts via `dev.dsf.server.auth.oidc.provider.client.cache.timeout.configuration.resource` and `dev.dsf.server.

Properties

ghsa_id
GHSA-xmj9-7625-f634
severity
medium
summary
Data Sharing Framework has an Inverted Time Comparison in OIDC JWKS and Token Cache
cve_id
GHSA-xmj9-7625-f634
is_ghsa_only
true
ghsa_published
2026-04-15T19:19:50Z
source_url
https://github.com/advisories/GHSA-xmj9-7625-f634
ghsa_updated
2026-04-15T19:19:53Z

Related Entities (6)

HAS_WEAKNESS (1)

[Weakness]Always-Incorrect Control Flow Implementation

REPORTED_BY (1)

[Source]GitHub Advisory Database

VULNERABLE_TO (2)

[Software]maven/dev.dsf:dsf-bpe-process-api-v2
[Software]maven/dev.dsf:dsf-bpe-server

AFFECTS (2)

[Software]maven/dev.dsf:dsf-bpe-process-api-v2
[Software]maven/dev.dsf:dsf-bpe-server

Explore deeper with Ninja Signal's threat intelligence graph

GHSA-xmj9-7625-f634 — Ninja Signal Threat Intelligence | Ninja Signal