{"id":"CVE-2026-40939","aliases":["CVE-2026-40939","GHSA-gj7p-595x-qwf5"],"related":[],"kind":"vulnerability","state":"published","title":"DSF: Missing Session Timeout for OIDC Sessions","summary":"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, OIDC-authenticated sessions had no configured maximum inactivity timeout. Sessions persisted indefinitely after login, even after the OIDC access token expired. This vulnerability is fixed in 2.1.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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, OIDC-authenticated sessions had no configured maximum inactivity timeout. Sessions persisted indefinitely after login, even after the OIDC access token expired. This vulnerability is fixed in 2.1.0.","source":"cvelist"},{"lang":"en","text":"### Affected Components\nDSF FHIR Server with enabled [OIDC authentication](https://dsf.dev/operations/v2.1.0/fhir/oidc.html).\nDSF BPE Server with enabled [OIDC authentication](https://dsf.dev/operations/v2.1.0/bpe/oidc.html).\n\n### Summary\nOIDC-authenticated sessions had no configured maximum inactivity timeout. Sessions persisted indefinitely after login, even after the OIDC access token expired.\n\n### Impact\nIf a user logs in via OIDC and leaves their browser without explicitly logging out, the session remains valid indefinitely. Another person using the same browser can access the DSF UI with the previous user's permissions. This is a realistic threat in hospital environments with shared workstations.\n\nOnly affects OIDC browser sessions, not relevant for mTLS machine-to-machine communication.\n\n### Fix (commits f4ecb00, 7d25fea)\n- Added configurable session timeout via `dev.dsf.server.auth.oidc.session.timeout` (default: `PT30M`).\n- Enabled `logoutWhenIdTokenIsExpired(true)` in OpenID configuration to tie session lifetime to token lifetime.\n- Websocket sessions are now closed with `VIOLATED_POLICY` when credentials expire, prevents stale websocket connections from continuing to receive events after session timeout.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El Data Sharing Framework (DSF) implementa un motor de procesos distribuido basado en los estándares BPMN 2.0 y FHIR R4. Antes de 2.1.0, las sesiones autenticadas con OIDC no tenían un tiempo de inactividad máximo configurado. Las sesiones persistían indefinidamente después del inicio de sesión, incluso después de que el token de acceso OIDC caducara. Esta vulnerabilidad está corregida en 2.1.0.","source":"nvd"}],"published":"2026-04-15T19:19:43.000Z","modified":"2026-10-26T21:10:00.170Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","score":6.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-613"],"affected":[{"ranges":[{"version":"< 2.1.0","status":"affected"}],"vendor":"datasharingframework","product":"dsf","source":"cvelist"},{"ranges":[{"version":"< 2.1.0","status":"affected"}],"vendor":"dev.dsf","product":"dsf-bpe-server","source":"cvelist"},{"ranges":[{"version":"< 2.1.0","status":"affected"}],"vendor":"dev.dsf","product":"dsf-common-jetty","source":"cvelist"},{"ranges":[{"version":"< 2.1.0","status":"affected"}],"vendor":"dev.dsf","product":"dsf-fhir-server","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected"}],"ecosystem":"Maven","package":"dev.dsf:dsf-common-jetty","purl":"pkg:maven/dev.dsf/dsf-common-jetty","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected"}],"ecosystem":"Maven","package":"dev.dsf:dsf-fhir-server","purl":"pkg:maven/dev.dsf/dsf-fhir-server","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected"}],"ecosystem":"Maven","package":"dev.dsf:dsf-bpe-server","purl":"pkg:maven/dev.dsf/dsf-bpe-server","source":"ghsa"}],"references":[{"url":"https://github.com/datasharingframework/dsf/security/advisories/GHSA-gj7p-595x-qwf5","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/datasharingframework/dsf/commit/f4ecb002f7d12642f92da6b79371ed367d0140e7","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://dsf.dev/operations/v2.1.0/bpe/oidc.html","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://dsf.dev/operations/v2.1.0/fhir/oidc.html","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40939","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/datasharingframework/dsf/commit/7d25feafb83d66cb59985ac88568b67d937b1937","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/datasharingframework/dsf","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-04-22T17:43:47.019Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40939","url":"https://www.cve.org/CVERecord?id=CVE-2026-40939","licence":"CVE Terms of Use","modified":"2026-04-22T17:44:03.707Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gj7p-595x-qwf5","url":"https://github.com/advisories/GHSA-gj7p-595x-qwf5","licence":"CC-BY-4.0","modified":"2026-05-05T16:06:56.520Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40939","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40939","licence":"Public domain","modified":"2026-10-26T21:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:19.198Z","epss":{"score":0.0016,"percentile":0.05412,"date":"2026-12-02T12:00:21.000Z"}}