{"id":"CVE-2026-31869","published":"2026-03-20T03:10:43Z","modified":"2026-03-20T17:18:59Z","title":"Discourse: Composer mentions endpoint leaks hidden group membership through PM `allowed_names` check","vendor":"discourse","product":"discourse","tier":"tail","description":{"text":"Discourse is an open-source discussion platform. Prior to versions 2026.3.0-latest.1, 2026.2.1, and 2026.1.2, the ComposerController#mentions endpoint reveals hidden group membership to any authenticated user who can message the group. By supplying allowed_names referencing a hidden-membership group and probing arbitrary usernames, an attacker can infer membership based on whether user_reasons returns \"private\" for a given user. This bypasses group member-visibility controls. Versions 2026.3.0-latest.1, 2026.2.1, and 2026.1.2 contain a patch. To work around this issue, restrict the messageable policy of any hidden-membership group to staff or group members only, so untrusted users cannot reach the vulnerable code path.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00347,"percentile":0.20667,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"},{"id":"CWE-285","name":"Improper Authorization"},{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key"}],"references":[{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-5f9h-vp7v-7vq5","tags":["x_refsource_CONFIRM"]}],"priority":{"score":7.8,"factors":[{"name":"EPSS percentile","points":4.13},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"discourse","affectedVersions":[{"vendor":"discourse","product":"discourse","versions":[">= 2026.1.0-latest, < 2026.1.2",">= 2026.2.0-latest, < 2026.2.1","= 2026.3.0-latest"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-20T17:16:37.287787Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-13496","exploited":false,"provenance":"source"}}