GitHub Advisoryadvisory · Maven

GHSA-xmj9-7625-f634 Data Sharing Framework has an Inverted Time Comparison in OIDC JWKS and Token Cache

MEDIUM Published 2026-04-15 Modified 2026-04-24 Official page ↗
Aliases
CVE-2026-40942
Ecosystem
Maven
Packages
dev.dsf:dsf-bpe-process-api-v2, dev.dsf:dsf-bpe-server
Severity
Moderate
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Weaknesses
CWE-670
Reviewed
2026-04-15

Affected packages

• Maven dev.dsf:dsf-bpe-process-api-v2: < 2.1.0 (no fix yet) • Maven dev.dsf:dsf-bpe-server: < 2.1.0 (no fix yet)

Description

Affected Components • DSF FHIR Server with enabled bearer-token authentication or back-channel logout. • DSF BPE Server with enabled bearer-token authentication or back-channel logout. • DSF BPE Server API v2 process plugins using FHIR client connections 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 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.auth.oidc.provider.client.cache.timeout.jwks.resource` (default: `PT1H`)

Related

Alias · CVE (1)

  • CVE-2026-40942 The Data Sharing Framework (DSF) implements a distributed process engine based on the BPMN 2.0 and FHIR R4 standards. vulnerability

Weakness · CWE (1)

  • CWE-670 Always-Incorrect Control Flow Implementation weakness

References