NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

CVE-2026-40939: Data Sharing Framework is Missing Session Timeout for OIDC Sessions

mediumCVSS 4.0 6.8GHSA-gj7p-595x-qwf5

Affected Components DSF FHIR Server with enabled OIDC authentication. DSF BPE Server with enabled OIDC authentication. Summary OIDC-authenticated sessions had no configured maximum inactivity timeout. Sessions persisted indefinitely after login, even after the OIDC access token expired. Impact If a user logs in via OIDC and leaves their browser without explicitly logging out, the session remains valid indefinitely.

Published Apr 15, 2026 · Updated Apr 24, 2026

Affected packages

dev.dsf:dsf-common-jetty

Ecosystem
Maven
Affected
< 2.1.0
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=dev.dsf:dsf-common-jetty

dev.dsf:dsf-fhir-server

Ecosystem
Maven
Affected
< 2.1.0
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=dev.dsf:dsf-fhir-server

dev.dsf:dsf-bpe-server

Ecosystem
Maven
Affected
< 2.1.0
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=dev.dsf:dsf-bpe-server

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Affected Components

DSF FHIR Server with enabled OIDC authentication. DSF BPE Server with enabled OIDC authentication.

Summary

OIDC-authenticated sessions had no configured maximum inactivity timeout. Sessions persisted indefinitely after login, even after the OIDC access token expired.

Impact

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

Only affects OIDC browser sessions, not relevant for mTLS machine-to-machine communication.

Fix (commits f4ecb00, 7d25fea)

  • Added configurable session timeout via dev.dsf.server.auth.oidc.session.timeout (default: PT30M).
  • Enabled logoutWhenIdTokenIsExpired(true) in OpenID configuration to tie session lifetime to token lifetime.
  • Websocket sessions are now closed with VIOLATED_POLICY when credentials expire, prevents stale websocket connections from continuing to receive events after session timeout.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Maven vulnerabilities

All Maven entries