CVE-2026-39972 Mercure has a Topic Selector Cache Key Collision
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| dunglas github.com/dunglas/mercure(Go) | < 0.22.0 | 0.22.0 | Fixed |
| dunglas github.com/dunglas/mercure | = < 0.22.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| dunglas github.com/dunglas/mercure(Go) | < 0.22.0 | 0.22.0 |
| dunglas github.com/dunglas/mercure | = < 0.22.0 | No fix listed |
References
- https://github.com/dunglas/mercure/security/advisories/GHSA-hwr4-mq23-wcv5 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/dunglas/mercure/commit/4964a69be904fd61e35b5f1e691271663b6fdd64 patch
- github.com product
- github.com
- github.com