Summary
Reflected XSS in Gotify's /docs via import of outdated Swagger UI
References
Impact
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.
Untrusted input is rendered as active markup in a victim's browser, which can run script in their session. Typical impact: session or credential theft, and actions taken as the user.
Affected versions
Security releases
Kodem intelligence
Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.
Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.
Already deployed Kodem?
See it in your environmentNew to Kodem? Get a demo →Remediation advice
The vulnerability has been fixed in version 2.2.3.
Frequently Asked Questions
- What is GHSA-3244-8MFF-W398? GHSA-3244-8MFF-W398 is a medium-severity cross-site scripting (XSS) vulnerability in github.com/gotify/server (go), affecting versions <= 2.2.2. It is fixed in 2.2.3. Untrusted input is rendered as active markup in a victim's browser, which can run script in their session.
- Which versions of github.com/gotify/server are affected by GHSA-3244-8MFF-W398? github.com/gotify/server (go) versions <= 2.2.2 is affected.
- Is there a fix for GHSA-3244-8MFF-W398? Yes. GHSA-3244-8MFF-W398 is fixed in 2.2.3. Upgrade to this version or later.
- Is GHSA-3244-8MFF-W398 exploitable, and should I be worried? Whether GHSA-3244-8MFF-W398 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
- What actually determines whether GHSA-3244-8MFF-W398 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
- How do I fix GHSA-3244-8MFF-W398? Upgrade
github.com/gotify/serverto 2.2.3 or later.