# CVE-2022-46181: Gotify server XSS vulnerability in the application image file upload

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-02)
- Published: 2022-12-29T18:36:46.603Z
- Modified: 2026-06-17T05:11:22.820Z
- Also known as: GHSA-xv6x-456v-24xh, GO-2022-1208
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Gotify server is a simple server for sending and receiving messages in real-time per WebSocket. Versions prior to 2.2.2 contain an XSS vulnerability that allows authenticated users to upload .html files. An attacker could execute client side scripts **if** another user opened a link. The attacker could potentially take over the account of the user that clicked the link. The Gotify UI won't natively expose such a malicious link, so an attacker has to get the user to open the malicious link in a context outside of Gotify. The vulnerability has been fixed in version 2.2.2. As a workaround, you can block access to non image files via a reverse proxy in the `./image` directory.

(As written by CVE List.)

## Affected

- gotify server: < 2.2.2; before 2.2.2
- github.com/gotify/server (Go): before 2.2.2; all versions
- github.com/gotify/server/v2 (Go): before 2.2.2

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/gotify/server/security/advisories/GHSA-xv6x-456v-24xh> (advisory, third-party-advisory, web)
- <https://github.com/gotify/server/pull/534> (fix, patch, third-party-advisory, web)
- <https://github.com/gotify/server/pull/535> (fix, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-46181> (advisory)
- <https://github.com/gotify/server> (package)

## Sources

- CVE List: [CVE-2022-46181](https://www.cve.org/CVERecord?id=CVE-2022-46181), CVE Terms of Use, modified 2025-04-10
- GitHub Advisory Database: [GHSA-xv6x-456v-24xh](https://github.com/advisories/GHSA-xv6x-456v-24xh), CC-BY-4.0, modified 2024-08-21
- Go Vulnerability Database: [GO-2022-1208](https://pkg.go.dev/vuln/GO-2022-1208), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2022-46181](https://nvd.nist.gov/vuln/detail/CVE-2022-46181), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-46181 · Whole record: https://cve.day/CVE-2022-46181.json · Rebuilt by cve.day 2026-11-25T22:58:17.930Z
