# CVE-2026-40942: DSF: Inverted Time Comparison in OIDC JWKS and Token Cache

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-04-15T19:19:50.000Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-xmj9-7625-f634
- Weaknesses: CWE-670
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- datasharingframework dsf: < 2.1.0
- dev.dsf dsf-bpe-process-api-v2: < 2.1.0
- dev.dsf dsf-bpe-server: < 2.1.0
- dev.dsf:dsf-bpe-process-api-v2 (Maven): all versions
- dev.dsf:dsf-bpe-server (Maven): all versions

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/datasharingframework/dsf/security/advisories/GHSA-xmj9-7625-f634> (web)
- <https://github.com/datasharingframework/dsf/commit/31c2e974dfd4351756104ee8c53dbcd666192fef> (web)
- <https://github.com/datasharingframework/dsf/commit/d3ca59b4daccde16a006fedeccce28fd1f826908> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40942> (advisory)
- <https://github.com/datasharingframework/dsf> (package)

## Sources

- CVE List: [CVE-2026-40942](https://www.cve.org/CVERecord?id=CVE-2026-40942), CVE Terms of Use, modified 2026-04-22
- GitHub Advisory Database: [GHSA-xmj9-7625-f634](https://github.com/advisories/GHSA-xmj9-7625-f634), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-40942](https://nvd.nist.gov/vuln/detail/CVE-2026-40942), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40942 · Whole record: https://cve.day/CVE-2026-40942.json · Rebuilt by cve.day 2026-11-25T22:59:19.198Z
