Loading advisory.
Loading advisory.
gotify/server vulnerable to Cross-site Scripting in the application image file upload
The XSS vulnerability allows authenticated users to upload .html files. With that, an attacker could execute client side scripts if another user opened a link, such as:
Published 2022-12-29 18:36 UTC · Modified 2026-03-03 04:52 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| github.com/gotify/server | Go | < 2.2.2 all versions | 2.2.2 | go get github.com/gotify/server@v2.2.2 |
| github.com/gotify/server/v2 | Go | < 2.2.2 | 2.2.2 | go get github.com/gotify/server/v2@v2.2.2 |
The XSS vulnerability allows authenticated users to upload .html files. With that, an attacker could execute client side scripts if another user opened a link, such as:
https://push.example.org/image/[alphanumeric string].htmlAn attacker could potentially take over the account of the user that clicked the link. Keep in mind, 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.
You can block access to non image files via a reverse proxy in the ./image directory.
https://github.com/gotify/server/pull/534 https://github.com/gotify/server/pull/535
Thanks to rickshang (aka 无在无不在) for discovering and reporting this bug.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.005 on 2026-11-24 to 0.007 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.005 | first score | v2026.06.15 |
| 2026-11-26 | 0.007 | 0.005 | v2026.06.15 |