{"answers":{"affected":"3 open source packages ship an affected version, including github.com/dunglas/mercure.","exploited":"There is no known exploitation of CVE-2026-39972 in the wild and no public exploit code.","fix":"Upgrade github.com/dunglas/mercure to 0.22.0 or later.","what":"CVE-2026-39972 is a high-severity authentication bypass vulnerability in dunglas mercure, published on 9 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-39972 and fix it if it is affected.\n\nWhat it is: CVE-2026-39972 is a high-severity authentication bypass vulnerability in dunglas mercure, published on 9 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-39972 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/dunglas/mercure (Go): affected all versions; fixed in 0.22.0\n- github.com/dunglas/mercure (Go): affected all versions; fixed in 0.22.0\n- github.com/dunglas/mercure (Go): affected all versions; fixed in 0.22.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-39972/ (Markdown: https://insights.sbomify.com/CVE-2026-39972/index.md)","id":"CVE-2026-39972","markdown":"https://insights.sbomify.com/CVE-2026-39972/index.md","name":"CVE-2026-39972","record":{"aliases":["GHSA-hwr4-mq23-wcv5","GO-2026-5444"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Mercure real-time hub","requires_auth":"low_privilege","summary":"An attacker can poison the cache to bypass authorization checks, delivering private updates to unauthorized subscribers or blocking authorized ones.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-1289","name":"Improper Validation of Unsafe Equivalence in Input"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Mercure has a Topic Selector Cache Key Collision","id":"CVE-2026-39972","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"auth_bypass","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"Apktool: Path Traversal to Arbitrary File Write","id":"CVE-2026-39973"},"packages":[{"ecosystem":"Go","fixed":["0.22.0"],"introduced":["0"],"last_affected":[],"package":"github.com/dunglas/mercure","purl":null,"source":"GHSA-hwr4-mq23-wcv5"},{"ecosystem":"Go","fixed":["0.22.0"],"introduced":["0"],"last_affected":[],"package":"github.com/dunglas/mercure","purl":"pkg:golang/github.com/dunglas/mercure","source":"GHSA-hwr4-mq23-wcv5"},{"ecosystem":"Go","fixed":["0.22.0"],"introduced":["0"],"last_affected":[],"package":"github.com/dunglas/mercure","purl":"pkg:golang/github.com/dunglas/mercure","source":"GO-2026-5444"}],"prev":{"headline":"Serendipity: Host Header Injection leads to SMTP header injection via unvalidated HTTP_HOST","id":"CVE-2026-39971"},"products":["mercure"],"published":"2026-04-09","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-09","vendors":["dunglas"]},"summary":"An attacker can poison the cache to bypass authorization checks, delivering private updates to unauthorized subscribers or blocking authorized ones.","url":"https://insights.sbomify.com/CVE-2026-39972/"}