{"id":"CVE-2022-46181","aliases":["GHSA-xv6x-456v-24xh","GO-2022-1208"],"url":"https://o3.security/vulnerability/CVE-2022-46181","summary":"Gotify server XSS vulnerability in the application image file upload","details":"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.","published":"2022-12-29T18:36:46.603Z","modified":"2026-08-12T03:51:38.883168276Z","cvss":{"score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},"epss":{"score":0.00502,"percentile":0.4114,"asOf":"2026-09-07"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/gotify/server","fixedVersion":"2.2.2"}],"fix":{"url":"https://github.com/gotify/server/pull/534","label":"gotify/server#534"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/46xxx/CVE-2022-46181.json"},{"type":"ADVISORY","url":"https://github.com/gotify/server/security/advisories/GHSA-xv6x-456v-24xh"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-46181"},{"type":"FIX","url":"https://github.com/gotify/server/pull/534"},{"type":"FIX","url":"https://github.com/gotify/server/pull/535"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:38.883168276Z"}}