# CVE-2022-46181: GO-2022-1208 - gotify/server vulnerable to Cross-site Scripting in the application image file upload in github.com/gotify/server

Source: https://junglewise.ai/threats/cve-2022-46181-gotify-server-vulnerable-to-cross-site-scripting-in-the  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-08-21  
License: CC BY 4.0 with a link back

CVE-2022-46181 · Severity: low · CVSS 3.1 · Published 2024-08-21

gotify/server vulnerable to Cross-site Scripting in the application image file upload in github.com/gotify/server

Technologies: [github.com/gotify/server (Go)](https://junglewise.ai/threats/technologies/github-com-gotify-server), [github.com/gotify/server/v2 (Go)](https://junglewise.ai/threats/technologies/github-com-gotify-server-v2). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2022-46181 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-46181 being exploited in the wild.

**How severe is CVE-2022-46181?** Low severity, with a CVSS score of 3.1, published 21 August 2024.

**Which products and versions are affected?** github.com/gotify/server (Go) SEMVER:introduced=0, SEMVER:introduced=0,fixed=2.2.2; github.com/gotify/server/v2 (Go) SEMVER:introduced=0,fixed=2.2.2.

**Is there a fix for CVE-2022-46181?** Yes. github.com/gotify/server (Go): upgrade to 2.2.2 or later; github.com/gotify/server/v2 (Go): upgrade to 2.2.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-46181?** Check whether you run github.com/gotify/server (Go) or github.com/gotify/server/v2 (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/gotify/server (Go): upgrade to 2.2.2 or later

  ```sh
  go get github.com/gotify/server@v2.2.2
  ```

- github.com/gotify/server/v2 (Go): upgrade to 2.2.2 or later

  ```sh
  go get github.com/gotify/server/v2@v2.2.2
  ```


## Affected products

- github.com/gotify/server (Go) SEMVER:introduced=0, SEMVER:introduced=0,fixed=2.2.2
- github.com/gotify/server/v2 (Go) SEMVER:introduced=0,fixed=2.2.2

## Identifiers

- CVE-2022-46181
- GHSA-xv6x-456v-24xh
- GO-2022-1208

## Related threats

- [Gotify password change endpoint missing verification](https://junglewise.ai/threats/cve-2026-102603-gotify-insufficiently-protected-password-change-endpoint)
- [GO-2023-1471 - Reflected XSS in Gotify's /docs via import of outdated Swagger UI in github.com/gotify/server](https://junglewise.ai/threats/go-2023-1471-reflected-xss-in-gotify-s-docs-via-import-of-outdated-49d6c92a)
- [Reflected XSS in Gotify's /docs via import of outdated Swagger UI](https://junglewise.ai/threats/reflected-xss-in-gotify-s-docs-via-import-of-outdated-swagger-ui-29b43f30)
