CVE-2026-40942
JSON

6.3medium

DSF: Inverted Time Comparison in OIDC JWKS and Token Cache

Severity
6.3medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.53% (higher than 38% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-xmj9-7625-f634

Description

The Data Sharing Framework (DSF) implements a distributed process engine based on the BPMN 2.0 and FHIR R4 standards. Prior to 2.1.0, 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. This vulnerability is fixed in 2.1.0.

Affected

Product or packageVersionsReported by
datasharingframework dsf< 2.1.0CVE List
dev.dsf dsf-bpe-process-api-v2< 2.1.0CVE List
dev.dsf dsf-bpe-server< 2.1.0CVE List
dev.dsf:dsf-bpe-process-api-v2 (Maven)all versionsGitHub Advisory Database
dev.dsf:dsf-bpe-server (Maven)all versionsGitHub Advisory Database

All scores

GitHub_M6.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Classification

CWE-670

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

The Data Sharing Framework (DSF) implements a distributed process engine based on the BPMN 2.0 and FHIR R4 standards. Prior to 2.1.0, 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. This vulnerability is fixed in 2.1.0.

GitHub Advisory Database
Affected Components
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)
NVD (es)

El Data Sharing Framework (DSF) implementa un motor de procesos distribuido basado en los estándares BPMN 2.0 y FHIR R4. Antes de la versión 2.1.0, las cachés de OIDC JWKS y del Documento de Metadatos utilizaban una comparación de tiempo invertida (isBefore en lugar de isAfter), lo que provocaba que la caché nunca devolviera valores almacenados en caché. Cada solicitud entrante activaba una nueva recuperación HTTP del Documento de Metadatos de OIDC y las claves JWKS del proveedor de OIDC. La caché de tokens de OIDC para las conexiones de cliente FHIR utilizaba una comparación de tiempo invertida (isBefore en lugar de isAfter), lo que provocaba que la caché nunca se invalidara. Cada solicitud entrante devolvía el mismo token de OIDC incluso si estaba caducado. Esta vulnerabilidad está corregida en la versión 2.1.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-40942 changed 2026-04-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-xmj9-7625-f634 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-40942 changed 2026-10-26Public domain