Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 82%

CVE-2026-40942: CWE-670: Always-Incorrect Control Flow Implementation in datasharingframework dsf

0
Medium
VulnerabilityCVE-2026-40942cvecve-2026-40942cwe-670
Published: Tue Apr 21 2026 (04/21/2026, 21:09:44 UTC)
Source: CVE Database V5
Vendor/Project: datasharingframework
Product: dsf

Description

CVE-2026-40942 affects the Data Sharing Framework (DSF) versions prior to 2. 1. 0. The vulnerability arises from incorrect time comparison logic in caching mechanisms for OIDC JWKS and Metadata Document as well as OIDC token cache. Specifically, inverted time comparisons cause the OIDC metadata and keys cache to never return cached values, resulting in unnecessary HTTP fetches, and the OIDC token cache to never invalidate, causing expired tokens to be reused. This issue is fixed in version 2. 1. 0.

CVSS v4.0

Score 6.3medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/29/2026, 11:12:13 UTC

Technical Analysis

The Data Sharing Framework (DSF) prior to version 2.1.0 contains a logic flaw in its OIDC JWKS and Metadata Document caches and OIDC token cache. The caches use an inverted time comparison (isBefore instead of isAfter), which causes the JWKS and metadata caches to always bypass cached values and fetch fresh data on every request. Conversely, the OIDC token cache never invalidates tokens due to the same inverted comparison, resulting in reuse of expired tokens. This vulnerability is classified under CWE-670 (Always-Incorrect Control Flow Implementation) and has a CVSS 4.0 base score of 6.3 (medium severity). The issue is resolved in DSF version 2.1.0.

Potential Impact

The vulnerability causes inefficient caching behavior for OIDC JWKS and metadata, leading to increased network requests and potential performance degradation. More critically, the OIDC token cache does not invalidate expired tokens, which could lead to authentication issues or token misuse depending on the token validation context. There are no known exploits in the wild. The impact is rated medium based on the CVSS score of 6.3.

Mitigation Recommendations

Upgrade the Data Sharing Framework to version 2.1.0 or later, where this caching logic flaw is fixed. No other mitigation or workaround is indicated. Patch status is not explicitly stated but the fix is included in version 2.1.0, so upgrading to this version or newer is the recommended remediation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-15T20:40:15.519Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69e7e91619fe3cd2cdfaec51

Added to database: 4/21/2026, 9:16:06 PM

Last enriched: 4/29/2026, 11:12:13 AM

Last updated: 6/4/2026, 4:26:04 PM

Views: 64

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses