CVE-2026-40942 — dsf-bpe-process-api-v2
Fix: datasharingframework/dsf@31c2e97CVE-2026-40942 is a CWE-670 vulnerability in dev.dsf:dsf-bpe-process-api-v2. No vendor fix is recorded yet; mitigation options are listed below.
DSF: Inverted Time Comparison in OIDC JWKS and Token Cache
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2026-40942.
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
Real-World Exposure
dev.dsf:dsf-bpe-process-api-v2☕dev.dsf:dsf-bpe-serverReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
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 (
isBeforeinstead ofisAfter), 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 (
isBeforeinstead ofisAfter), 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
isBeforetoisAfterinBaseOidcClientWithCache(configuration and JWKS caches) andOidcClientWithCache(configuration, JWKS, and access token caches) - Added configurable cache timeouts via
dev.dsf.server.auth.oidc.provider.client.cache.timeout.configuration.resourceanddev.dsf.server.auth.oidc.provider.client.cache.timeout.jwks.resource(default:PT1H)
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | dev.dsf:dsf-bpe-process-api-v2 | all versions | No fix |
| ☕Maven | dev.dsf:dsf-bpe-server | all versions | No fix |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for dev.dsf:dsf-bpe-process-api-v2, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Remediation status
No patched version of dev.dsf:dsf-bpe-process-api-v2 has shipped for CVE-2026-40942 yet. Where your build allows, override or pin the dependency away from the vulnerable range, and apply any maintainer-recommended mitigation.
Mitigate without a patch
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like CVE-2026-40942 can be triaged on real exposure rather than presence alone.
Tailored to CVE-2026-40942. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is CVE-2026-40942 in your dependencies?
O3 Security finds CVE-2026-40942 across Maven dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.