Mercure has a Topic Selector Cache Key Collision
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- High · None · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| dunglas | mercure | before 0.22.0 | 0.22.0 | Patch available | CNA |
| — | github.com/dunglas/mercure (Go) | before 0.22.0 | 0.22.0 | Patch available | GHSA-hwr4-mq23-wcv5 |
- mercure Vendordunglas Affected before 0.22.0 Fixed in 0.22.0 Patch available CNA
- github.com/dunglas/mercure (Go) Vendor— Affected before 0.22.0 Fixed in 0.22.0 Patch available GHSA-hwr4-mq23-wcv5
Remediation
- Fix · CNA mercure (dunglas) Fixed in 0.22.0
- Fix · GHSA-hwr4-mq23-wcv5 github.com/dunglas/mercure (Go) Fixed in 0.22.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-39972
- 2026-10-03 Alias added: GHSA-hwr4-mq23-wcv5
References
Sources
- CVE-2026-39972 · CVE Program
- CVE-2026-39972 · NVD
- FIRST EPSS
- GHSA-hwr4-mq23-wcv5 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences