Skip to content
OpenAdvisories
High · 7.1 CVE-2026-39972 EUVD-2026-20967GHSA-hwr4-mq23-wcv5GO-2026-5444

Mercure has a Topic Selector Cache Key Collision

Published Apr 9, 2026 · Updated Apr 9, 2026 · Assigned by GitHub_M

Description

Mercure is a protocol for pushing data updates to web browsers and other HTTP clients in a battery-efficient way. Prior to 0.22.0, 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. Because both topic selectors and topics can contain underscores, two distinct pairs can produce the same key. 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. This vulnerability is fixed in 0.22.0.

Affected products

VendorProductAffectedFixed
dunglas mercure < 0.22.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/dunglas/mercure < 0.22.0 0.22.0 GHSA-hwr4-mq23-wcv5

Advisories 1

References