Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

mattermost/mattermost-plugin-ai
master @ 10d0c67
25
Fixes
0
CVEs
HIGH
Peak severity
58.3%
Coverage
Highlights
Auth Bypass: 13 prior fixes. Scrutinize any change in this area.
server/api.go: most-fixed (3 issues). Treat as high-risk during review.
9 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Auth Bypass: Attackers could bypass channel isolation boundaries to transcribe or summarize files they do not have access to by referencing arbitrary file IDs, requiring strict verification of the association between the target file, post, and channel.
Access Control: Malicious actors or remote prompts could trigger unauthorized tool execution by circumventing local MCP tool execution policies, necessitating robust origin validation and strict limits on auto-running capabilities.
Auth Bypass: Command execution routines on threads could process unauthorized posts unless the system explicitly verifies that the requested thread RootID resides within a channel the user has permission to access.