CVE-2026-39972
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/dunglas/mercureGo | < 0.22.0 | 0.22.0 |
Affected products
6- osv-coords5 versionspkg:apk/chainguard/frankenphp-8.2pkg:apk/chainguard/frankenphp-8.3pkg:apk/chainguard/frankenphp-8.4pkg:apk/chainguard/frankenphp-8.5pkg:golang/github.com/dunglas/mercure
< 1.12.2-r0+ 4 more
- (no CPE)range: < 1.12.2-r0
- (no CPE)range: < 1.12.2-r0
- (no CPE)range: < 1.12.2-r0
- (no CPE)range: < 1.12.2-r0
- (no CPE)range: < 0.22.0
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-hwr4-mq23-wcv5ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-39972ghsaADVISORY
- github.com/dunglas/mercure/commit/4964a69be904fd61e35b5f1e691271663b6fdd64nvdWEB
- github.com/dunglas/mercure/releases/tag/v0.22.0ghsaWEB
- github.com/dunglas/mercure/security/advisories/GHSA-hwr4-mq23-wcv5nvdWEB
News mentions
0No linked articles in our index yet.