Loading advisory.
Loading advisory.
Reflected XSS in Gotify's /docs via import of outdated Swagger UI
Gotify exposes an outdated instance of the Swagger UI API documentation frontend at /docs which is susceptible to reflected XSS attacks when loading external Swagger config files.
Published 2023-01-10 22:48 UTC · Modified 2026-03-03 04:53 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| github.com/gotify/server | Go | < 2.2.3 all versions | 2.2.3 | go get github.com/gotify/server@v2.2.3 |
| github.com/gotify/server/v2 | Go | < 2.2.3 | 2.2.3 | go get github.com/gotify/server/v2@v2.2.3 |
Gotify exposes an outdated instance of the Swagger UI API documentation frontend at /docs which is susceptible to reflected XSS attacks when loading external Swagger config files.
Specifically, the DOMPurify version included with this version of Swagger UI is vulnerable to a rendering XSS incorporating the mutation payload detailed in CVE-2020-26870 which was patched in 2021. This is further tracked in the GitHub Advisory Database as GHSA-QRMM-W75W-3WPX.
An attacker can execute arbitrary JavaScript and 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.3.
https://github.com/gotify/server/pull/541
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
No EPSS history yet. Either the CVE has no score or the scores have not been fetched.