---
id: CVE-2023-47168
aliases:
  - GHSA-4ghx-8jw8-p76q
title: Mattermost Open Redirect vulnerability
summary: Mattermost Open Redirect vulnerability
severity: medium
cvss: 4.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N'
vendor: mattermost
product: github.com/mattermost/mattermost/server/v8
ecosystem: go
affected:
  - 'github.com/mattermost/mattermost/server/v8 >= 9.1.0, < 9.1.1'
  - 'github.com/mattermost/mattermost/server/v8 >= 9.0.0, < 9.0.2'
  - github.com/mattermost/mattermost/server/v8 < 8.1.4
  - github.com/mattermost/mattermost-server/v6 < 7.8.13
patched:
  - github.com/mattermost/mattermost/server/v8 9.1.1
  - github.com/mattermost/mattermost/server/v8 9.0.2
  - github.com/mattermost/mattermost/server/v8 8.1.4
  - github.com/mattermost/mattermost-server/v6 7.8.13
published: '2023-11-27'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:04.112971450Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-4ghx-8jw8-p76q'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2023-47168'
  - url: 'https://github.com/mattermost/mattermost'
  - url: 'https://mattermost.com/security-updates'
tags:
  - osv
  - go
epss: 0.00403
epssPercentile: 0.31769
ingestedAt: '2026-09-12T03:13:01.752Z'
---

## Overview

Mattermost fails to properly check a redirect URL parameter allowing for an open redirect was possible when the user clicked "Back to Mattermost" after providing a invalid custom url scheme in /oauth/{service}/mobile_login?redirect_to=



## Affected packages

- `github.com/mattermost/mattermost/server/v8 >= 9.1.0, < 9.1.1`
- `github.com/mattermost/mattermost/server/v8 >= 9.0.0, < 9.0.2`
- `github.com/mattermost/mattermost/server/v8 < 8.1.4`
- `github.com/mattermost/mattermost-server/v6 < 7.8.13`

## Remediation

Upgrade to a patched release:

- `github.com/mattermost/mattermost/server/v8 9.1.1`
- `github.com/mattermost/mattermost/server/v8 9.0.2`
- `github.com/mattermost/mattermost/server/v8 8.1.4`
- `github.com/mattermost/mattermost-server/v6 7.8.13`
