GitHub Advisory Database
GHSA-3c22-5j5m-4jq7
Gokapi has Stored XSS in SVG Hotlinks
Details
Summary
If a malicious authenticated user uploads SVG and creates a hotlink for it, they achieve stored XSS.
Details
The hotlinking functionality fails to properly handle scripts included in the SVGs, allowing authenticated attackers with the ability to upload and hotlink file to execute arbitrary JS.
*Issue found by aisafe.io*
Impact
Authenticated attackers with the ability to upload and hotlink files can execute arbitrary JavaScript.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/forceu/gokapi | All versions before 2.2.3 (fixed in 2.2.3) |