Gotify server XSS vulnerability in the application image file upload
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| gotify | server | before 2.2.2 | 2.2.2 | Patch available | CNA |
| — | github.com/gotify/server (Go) | before 2.2.2 | 2.2.2 | Patch available | GHSA-xv6x-456v-24xh |
- server Vendorgotify Affected before 2.2.2 Fixed in 2.2.2 Patch available CNA
- github.com/gotify/server (Go) Vendor— Affected before 2.2.2 Fixed in 2.2.2 Patch available GHSA-xv6x-456v-24xh
Remediation
- Fix · CNA server (gotify) Fixed in 2.2.2
- Fix · GHSA-xv6x-456v-24xh github.com/gotify/server (Go) Fixed in 2.2.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-46181
- 2026-10-03 Alias added: GHSA-xv6x-456v-24xh
References
Sources
- CVE-2022-46181 · CVE Program
- CVE-2022-46181 · NVD
- FIRST EPSS
- GHSA-xv6x-456v-24xh · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences