CVE-2026-39972

High

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.

SeverityHigh
CVSS7.1
Exploit probability—
ProductGithub.com/dunglas/mercure
PublishedApr 9, 2026
First seenApr 9, 2026
Weakness typeCWE-1289CWE-1289

How to fix

Update
  • github.com/dunglas/mercure0.22.0 or later

Affected products

ProductAffected versionsFixed in
github.com/dunglas/mercureGov < 0.22.00.22.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.