# CVE-2026-39972: Mercure has a Topic Selector Cache Key Collision

- Severity: High 7.1 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2026-04-08T19:53:20.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-hwr4-mq23-wcv5, GO-2026-5444
- Weaknesses: CWE-1289
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- dunglas mercure: < 0.22.0
- github.com/dunglas/mercure (Go): before 0.22.0

## Every score

- GitHub_M: CVSS:4.0 7.1 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N`

## References

- <https://github.com/dunglas/mercure/security/advisories/GHSA-hwr4-mq23-wcv5> (advisory, web)
- <https://github.com/dunglas/mercure/commit/4964a69be904fd61e35b5f1e691271663b6fdd64> (fix, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39972> (advisory)
- <https://github.com/dunglas/mercure> (package)
- <https://github.com/dunglas/mercure/releases/tag/v0.22.0> (web)

## Sources

- CVE List: [CVE-2026-39972](https://www.cve.org/CVERecord?id=CVE-2026-39972), CVE Terms of Use, modified 2026-04-09
- GitHub Advisory Database: [GHSA-hwr4-mq23-wcv5](https://github.com/advisories/GHSA-hwr4-mq23-wcv5), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5444](https://pkg.go.dev/vuln/GO-2026-5444), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-39972](https://nvd.nist.gov/vuln/detail/CVE-2026-39972), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-39972 · Whole record: https://cve.day/CVE-2026-39972.json · Rebuilt by cve.day 2026-11-25T22:59:18.386Z
