{"cve":"CVE-2022-46181","nvd":{"published":"2022-12-29T19:15:08.810","modified":"2026-06-17T05:11:22.820","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4},"cwes":["CWE-79"],"references":["https://github.com/gotify/server/pull/534","https://github.com/gotify/server/pull/535","https://github.com/gotify/server/security/advisories/GHSA-xv6x-456v-24xh","https://github.com/gotify/server/pull/534","https://github.com/gotify/server/pull/535"],"products":["gotify:server"],"source":"nvd","synced_at":"2026-10-19T21:37:31.370122805+00:00"},"epss":{"cve":"CVE-2022-46181","score":0.00545,"percentile":0.45732,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-xv6x-456v-24xh","url":"https://osv.dev/vulnerability/GHSA-xv6x-456v-24xh","summary":"gotify/server vulnerable to Cross-site Scripting in the application image file upload","modified":"2024-08-21T16:28:38.862938Z","packages":[{"ecosystem":"Go","name":"github.com/gotify/server","purl":"pkg:golang/github.com/gotify/server","ranges":["<2.2.2"],"fixed":["2.2.2"]}]},{"id":"GO-2022-1208","url":"https://osv.dev/vulnerability/GO-2022-1208","summary":"gotify/server vulnerable to Cross-site Scripting in the application image file upload in github.com/gotify/server","modified":"2026-03-03T04:52:56.868724Z","packages":[{"ecosystem":"Go","name":"github.com/gotify/server","purl":"pkg:golang/github.com/gotify/server","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/gotify/server/v2","purl":"pkg:golang/github.com/gotify/server/v2","ranges":["<2.2.2"],"fixed":["2.2.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}