CVE-2022-46181: Gotify server XSS vulnerability in the application image file upload
Vulnerability summary
CVE-2022-46181 is a medium (CVSS 6.1) vulnerability in gotify server. EPSS estimates a 0.55% chance of exploitation in the next 30 days, higher than 46.6% of scored vulnerabilities.
Not severe (CVSS 6.1, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 29-12-2022PublishedVulnerability first disclosed.
- 10-04-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · GoEcosystem advisory · calculated4.6MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:NDiffers
- NVDNIST5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:NDiffers
EPSS trend
Probability
0.55%
Chance of exploitation in the next 30 days
Percentile
47%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 0.53% on 21-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Github.com/gotify1 product
- server< 2.2.2 | All versions (No fix recorded)
Github.com/gotify/server1 product
- v2< 2.2.2
Gotify1 product
- server< 2.2.2
3 vendors · 3 products
References
5 links- github.com/gotify/server/security/advisories/GHSA-xv6x-456v-24xhX Refsource CONFIRMWEBAdvisoryThird Party Advisory
- github.com/gotify/serverPACKAGE