Security mailing lists by PureSourceCode

GO-2023-1471

MEDIUM

Reflected XSS in Gotify's /docs via import of outdated Swagger UI

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.

Patches

The vulnerability has been fixed in version 2.2.3.

References

https://github.com/gotify/server/pull/541

Published
10 Jan 2023
Last modified
3 Mar 2026
Weakness
CWE-79
Also known as
GHSA-3244-8mff-w398
Sources
OSV GHSA-3244-8mff-w398JSONOSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go github.com/gotify/server < 2.2.3 2.2.3
OSV Go github.com/gotify/server all versions
OSV Go github.com/gotify/server/v2 < 2.2.3 2.2.3

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 20 Aug 2024)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 10 Jan 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.