# CVE-2026-28683: Gokapi: Stored XSS in SVG Hotlinks

> A malicious authenticated user can achieve stored XSS by uploading an SVG file and creating a hotlink, potentially compromising other users.

- **Severity:** High 8.7 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 6 Mar 2026
- **Updated:** 6 Mar 2026
- **Also known as:** GHSA-3c22-5j5m-4jq7, GO-2026-4612

## What is CVE-2026-28683?

CVE-2026-28683 is a high-severity cross-site scripting vulnerability in Forceu Gokapi, published on 6 Mar 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

### Official description

Gokapi is a self-hosted file sharing server with automatic expiration and encryption support. Prior to version 2.2.3, if a malicious authenticated user uploads SVG and creates a hotlink for it, they can achieve stored XSS. This issue has been patched in version 2.2.3.

Weakness: CWE-79 (Improper Neutralization of Input During Web Page Generation)

## Which versions are affected by CVE-2026-28683?

3 open source packages ship an affected version, including github.com/forceu/gokapi. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/forceu/gokapi` | Go | All versions | None |
| `github.com/forceu/gokapi` | Go | All versions | 2.2.3 |
| `github.com/forceu/gokapi` | Go | All versions | 2.2.3 |

Products: Forceu Gokapi.

## How do I fix CVE-2026-28683?

Upgrade github.com/forceu/gokapi to 2.2.3 or later.

## Is CVE-2026-28683 being exploited?

There is no known exploitation of CVE-2026-28683 in the wild and no public exploit code.

## Other vulnerabilities in Forceu Gokapi

- [CVE-2026-30955](https://insights.sbomify.com/CVE-2026-30955/): Gokapi vulnerable to DoS in E2E Metadata Parser (medium 6.5)
- [CVE-2026-28682](https://insights.sbomify.com/CVE-2026-28682/): Gokapi: Data Leak in Upload Status Stream (medium 6.4)
- [CVE-2026-29061](https://insights.sbomify.com/CVE-2026-29061/): Gokapi: Privilege escalation via incomplete API-key permission revocation on user rank demotion (medium 5.4)
- [CVE-2026-29060](https://insights.sbomify.com/CVE-2026-29060/): Gokapi: Privilege escalation with auth token (medium 5.0)
- [CVE-2025-48494](https://insights.sbomify.com/CVE-2025-48494/): Gokapi vulnerable to stored XSS via uploading file with malicious file name (medium 4.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-28683 and fix it if it is affected.

What it is: CVE-2026-28683 is a high-severity cross-site scripting vulnerability in Forceu Gokapi, published on 6 Mar 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2026-28683 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/forceu/gokapi (Go): affected all versions; no fix listed
- github.com/forceu/gokapi (Go): affected all versions; fixed in 2.2.3
- github.com/forceu/gokapi (Go): affected all versions; fixed in 2.2.3

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-28683/ (Markdown: https://insights.sbomify.com/CVE-2026-28683/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-28683
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-28683
- OSV: https://osv.dev/vulnerability/CVE-2026-28683

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-28683/
Summaries are generated and may contain mistakes; the official description above is the record.
