MediumGHSA-hv5f-73mr-7vvjCVE-2021-37860GO-2022-0604

Cross-site Scripting in Mattermost

Published 23 Sept 2021 · Updated 21 Aug 2024

Is your project on an affected github.com/mattermost/mattermost-server/v5?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<5.39.0
Fixed in
5.39.0
Update to the fixed version for your release line, for example:go get github.com/mattermost/mattermost-server/v5@v5.39.0

Details

Mattermost 5.38 and earlier fails to sufficiently sanitize clipboard contents, which allows a user-assisted attacker to inject arbitrary web script in product deployments that explicitly disable the default CSP.

Is GHSA-hv5f-73mr-7vvj in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/mattermost/mattermost-server/v5, and gives you the command that fixes it.

More advisories for github.com/mattermost/mattermost-server/v5

  • LowCVE-2026-8823Mattermost has an Incorrect Authorization issue in github.com/mattermost/mattermost-server · 1 Oct 2026
  • LowCVE-2026-6046Mattermost doesn't validate that a username returned during bot registration belongs to a bot account in github.com/mattermost/mattermost-server · 25 Aug 2026
  • LowCVE-2026-7387Mattermost doesn't require role-management authorization when setting the scheme_admin flag on group syncable link and patch endpoints in github.com/mattermost/mattermost-server · 25 Aug 2026
  • LowCVE-2026-6961Mattermost doesn't sanitize FileInfo.Name received from federated peers during shared channel file sync in github.com/mattermost/mattermost-server · 25 Aug 2026
  • LowCVE-2026-7184Mattermost doesn't sanitize the Remote Cluster API response on PATCH operations in github.com/mattermost/mattermost-server · 25 Aug 2026
  • LowCVE-2026-6689Mattermost doesn't enforce PermissionInviteUser when setting AllowOpenInvite or AllowedDomains during team creation in github.com/mattermost/mattermost-server · 25 Aug 2026
All 211 advisories for github.com/mattermost/mattermost-server/v5

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.