Skip to main content

CVE-2026-39972

| EUVDEUVD-2026-20967 HIGH
Improper Validation of Unsafe Equivalence in Input (CWE-1289)
2026-04-08 https://github.com/dunglas/mercure GHSA-hwr4-mq23-wcv5
7.1
CVSS 4.0 · Vendor: https://github.com/dunglas/mercure
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft topic selector with underscore character
  2. Exploit
    Trigger cache key collision in TopicSelectorStore
  3. Execution
    Poison match result cache
  4. Impact
    Deliver private updates to unauthorized subscribers

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Hardware access control
Exploitation Conditions

Requires authenticated user with subscription privileges to TopicSelectorStore in affected application. Attacker must craft topic selectors and topics containing underscores to create cache key collisions, poisoning the match result cache to redirect private updates to unauthorized subscribers or block authorized delivery.

Impact

Cache key collision in topic selector matching enables authorization bypass for private message delivery. Attackers with publish or subscribe access can craft topic names to collide with legitimate selectors, poisoning cached match results. This affects confidentiality and integrity of message routing. Severity depends on deployment: systems relying on topic-based access control face direct compromise; workaround (disabling cache) available but incurs performance cost.

Exploit ScenarioDerived

Attacker subscribes with selector 'foo' targeting 'bar_baz' topic. Simultaneously publishes private update to 'foo_bar' topic with 'baz' suffix, generating identical cache key 'm_foo_bar_baz'. Cached collision causes private update intended for 'foo_bar'/'baz' pair to route to unauthorized 'foo'/'bar_baz' subscriber.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 09, 2026

Cache key collision in Mercure hub TopicSelectorStore enables authorization bypass through crafted topic names. Attackers can poison the match result cache by exploiting underscore-based key concatenation, causing private updates to be delivered to unauthorized subscribers or blocking legitimate deliveries. Affects Go package github.com/dunglas/mercure prior to version 0.22.0. Exploitation requires ability to subscribe to the hub or publish updates with specially crafted topic/selector combinations. No public exploit identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade to Mercure version 0.22.0 or later, which implements collision-free typed struct cache keys. Commit 4964a69be904fd61e35b5f1e691271663b6fdd64 contains the fix. Release available at https://github.com/dunglas/mercure/releases/tag/v0.22.0. Workaround for unpatched systems: disable topic selector cache by setting topic_selector_cache to -1 in Caddyfile configuration, or pass cache size 0 when using the library directly. This eliminates vulnerability but degrades performance. Vendor advisory: https://github.com/dunglas/mercure/security/advisories/GHSA-hwr4-mq23-wcv5

Affected VersionsENISA

mercure < 0.22.0

Affected Packages

go github.com/dunglas/mercure fix: 0.22.0
euvd mercure fix: 0.22.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CWE-1289 collision stems from string concatenation cache key generation (topicSelector + "_" + topic). Underscore separator creates ambiguity: "foo_bar"+"baz" and "foo"+"bar_baz" produce identical key "m_foo_bar_baz". Fix replaces string keys with typed Go struct keys containing separate topicSelector and topic fields, eliminating concatenation-based collisions. Otter cache implementation replaces sharded cache abstraction.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/dunglas/mercure) PRIMARY 7.1 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N
SUSE HIGH

Primary rating from Vendor (https://github.com/dunglas/mercure).

CVSS VectorVendor: https://github.com/dunglas/mercure

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch released
Apr 09, 2026 - 14:45 nvd
Patch available
CVE Published
Apr 08, 2026 - 19:53 nvd
HIGH 7.1

DescriptionCVE.org

Impact

A cache key collision vulnerability in TopicSelectorStore allows an attacker to poison the match result cache, potentially causing private updates to be delivered to unauthorized subscribers or blocking delivery to authorized ones.

The cache key was constructed by concatenating the topic selector and topic with an underscore separator:

go
k = "m_" + topicSelector + "_" + topic

Because both topic selectors and topics can contain underscores, two distinct pairs can produce the same key:

selector="foo_bar"  topic="baz"     → key: "m_foo_bar_baz"
selector="foo"      topic="bar_baz" → key: "m_foo_bar_baz"

An attacker who can subscribe to the hub or publish updates with crafted topic names can exploit this to bypass authorization checks on private updates.

Patches

The vulnerability is fixed by replacing string-encoded cache keys with typed Go struct keys that are inherently collision-free:

go
type matchCacheKey struct {
    topicSelector string
    topic         string
}

The internal TopicSelectorStoreCache interface and sharded cache abstraction have also been removed in favor of a single typed otter cache.

Users should upgrade to version 0.22.0 or later.

Workarounds

Disable the topic selector cache by setting topic_selector_cache to -1 in the Caddyfile, or by passing a cache size of 0 when using the library directly. This eliminates the vulnerability at the cost of reduced performance.

Executive ViewAI

Why It Matters

Mercure hub versions prior to 0.22.0 contain a cache key collision vulnerability that allows attackers with publish or subscribe permissions to bypass authorization controls and deliver private updates to unauthorized users or block legitimate message delivery. This directly undermines the confidentiality and integrity guarantees of real-time messaging infrastructure, potentially exposing sensitive data to unauthorized parties.

Business Impact: High
Compensating Controls

Apply vendor patch to version 0.22.0 or later.

Threat Intelligence Overview

EPSS Score
0.1%
Top 75% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy