# Mattermost webapp crash via a crafted post

Advisory record · `GHSA-w6xh-c82w-h997`

- **Identifiers:** `GHSA-w6xh-c82w-h997` · `CVE-2025-20621` · `GO-2025-3407`
- **State:** Confirmed
- **Severity:** CVSS 6.5 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-1287](https://cwe.mitre.org/data/definitions/1287.html)
- **Tags:** [CWE-1287](https://agentprime.io/advisories/tag/cwe-1287.md)
- **Published:** 16 Jan 2025
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 16 Jan 2025, 21:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `github.com/mattermost/mattermost/server/v8` (Go): affected `>=10.2.0, <10.2.1 || >=10.1.0, <10.1.4 || >=10.0.0, <10.0.4 || >=9.11.0, <9.11.6 || <8.0.0-20241127161322-25ff7a3779a5`; fixed in `10.2.1`, `10.1.4`, `10.0.4`, `9.11.6`, `8.0.0-20241127161322-25ff7a3779a5`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Mattermost server (github.com/mattermost/mattermost/server/v8) versions 9.11.0 through 9.11.5, 10.0.0 through 10.0.3, 10.1.0 through 10.1.3, and 10.2.0 are affected, along with an older range below 8.0.0-20241127161322-25ff7a3779a5. An attacker who can post to a channel can send a crafted post with attachment fields that cannot be converted to a string, crashing the webapp. Upgrade to 8.0.0-20241127161322-25ff7a3779a5, 9.11.6, 10.0.4, 10.1.4, or 10.2.1 or later. No workaround is listed.

Written 1 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 6.5 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`, from CNA (Mattermost)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0048, the 41st percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:15 UTC: First seen by agentprime
- 31 Oct 2026, 14:15 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-w6xh-c82w-h997)

## Sources

- [GitHub Advisory Database: GHSA-w6xh-c82w-h997](https://github.com/advisories/GHSA-w6xh-c82w-h997)
- [OSV: GHSA-w6xh-c82w-h997](https://osv.dev/vulnerability/GHSA-w6xh-c82w-h997)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-20621>
- <https://github.com/mattermost/mattermost>
- <https://mattermost.com/security-updates>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-w6xh-c82w-h997>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-w6xh-c82w-h997/>. Everything for agents: <https://agentprime.io/llms.txt>.
