CVE-2026-91181 in Mattermost exposes a flaw that goes well beyond its medium severity rating. The data retention teams endpoint returns full Team objects—including the invite_id field—which functions as a silent authorization token. Any user with read-only Data Retention Policy permission can call this endpoint, enumerate all private teams in the organization, and extract invite links that grant immediate membership without approval. There is no exploit chain, no race condition, and no special tooling required. The attack surface is simply an API returning too much data.

The CVSS of 6.5 fundamentally misrepresents this risk. Authentication is not a meaningful barrier when the baseline role is read-only compliance access—that is the attacker's starting position, not a hurdle. The metric treats this as limited scope, but the scope includes persistent, undetected membership in private channels where sensitive discussions occur. That is exactly the class of flaw that enables quiet lateral movement without triggering any anomaly detection, because the user is doing exactly what their role permits.

The invite_id field illustrates a recurring classification failure. Development teams treat it as metadata—team configuration detail alongside display_name—rather than recognizing it as an authorization token. It looks like a reference, not a credential, so it never gets flagged in security reviews. This is the same pattern seen in compliance exports across other platforms: audit endpoints returning invitation links, session tokens, or workspace secrets alongside administrative metadata.

To assess your exposure, audit the data retention endpoint for returned fields that enable lateral movement. Then sweep other compliance or administrative endpoints for the same pattern—Team and Channel objects returned to low-privilege roles that include invite_ids, secrets, or tokens. The surgical fix is sanitizing the Team object, but treat that as a symptom patch. The real question is which other endpoints were never designed with the understanding that their returned data could be weaponized for enumeration and lateral movement.