CVE-2026-40942
Java vulnerability analysis and mitigation

Overview

CVE-2026-40942 is an inverted time comparison vulnerability in the Data Sharing Framework (DSF), a distributed process engine implementing BPMN 2.0 and FHIR R4 standards. The flaw affects the OIDC JWKS/Metadata Document caches and the OIDC token cache in versions prior to 2.1.0 of dev.dsf:dsf-bpe-server and dev.dsf:dsf-bpe-process-api-v2. It was published on April 21, 2026, and fixed in DSF version 2.1.0. The vulnerability carries a CVSS v4.0 base score of 6.3 (Medium) (GitHub Advisory).

Technical details

The root cause is an always-incorrect control flow implementation (CWE-670): the cache expiry checks in BaseOidcClientWithCache and OidcClientWithCache used isBefore instead of isAfter when comparing the cache timeout against the current time. This produced two distinct behavioral defects: (1) the OIDC JWKS and Metadata Document caches never returned cached values — every request triggered a fresh HTTP fetch from the OIDC provider; and (2) the OIDC access token cache never invalidated — every request returned the same (potentially expired) token. The fix, applied in commits 31c2e97 and d3ca59b, corrects the comparison operator from isBefore to isAfter in both BaseOidcClientWithCache.getOrSet() and OidcClientWithCache.getConfiguration()/getJwks()/getAccessTokenDecoded() methods, and adds configurable cache timeouts (GitHub Commit 31c2e97, GitHub Commit d3ca59b).

Impact

The vulnerability has two distinct availability impacts: excessive network load on the OIDC provider due to uncached JWKS/metadata fetches on every request, and the continued use of expired OIDC tokens for FHIR client connections, which can only be cleared by restarting the BPE server. If the OIDC provider becomes temporarily unreachable, all OIDC-authenticated requests fail immediately rather than falling back to cached keys, causing a denial-of-service condition for DSF FHIR Server and BPE Server deployments with bearer-token authentication or back-channel logout enabled. There is no confidentiality or integrity impact; the primary risk is degraded availability and potential rate-limiting of the OIDC provider (GitHub Advisory).

Exploitability

No public exploit code or in-the-wild exploitation has been reported for this vulnerability. The EPSS score is approximately 0.04%, indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires specific attack prerequisites (the OIDC provider must be reachable or deliberately made unreachable), limiting practical exploitability (GitHub Advisory).

Mitigation and workarounds

Upgrade to DSF version 2.1.0, which corrects the inverted cache timeout comparisons in both BaseOidcClientWithCache and OidcClientWithCache. The fix also introduces two new configurable cache timeout properties: dev.dsf.server.auth.oidc.provider.client.cache.timeout.configuration.resource and dev.dsf.server.auth.oidc.provider.client.cache.timeout.jwks.resource (both defaulting to PT1H). No workaround is available for the token cache issue short of upgrading; for the JWKS/metadata cache issue, restarting the BPE server can temporarily clear the stale token cache (GitHub Advisory, GitHub Commit 31c2e97).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-58400CRITICAL9.1
  • Java logoJava
  • org.geonetwork-opensource:gs-web-app
NoYesSep 03, 2026
CVE-2026-63219HIGH8.6
  • Java logoJava
  • org.geonetwork-opensource:gn-services
NoYesSep 03, 2026
CVE-2026-49832HIGH8
  • Java logoJava
  • org.dspace:dspace-api
NoYesSep 02, 2026
CVE-2026-55864HIGH7.7
  • Java logoJava
  • org.geonetwork-opensource:gn-web-app
NoYesSep 09, 2026
CVE-2026-49833MEDIUM5.5
  • Java logoJava
  • org.dspace:dspace-api
NoYesSep 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management