GitHub Advisoryadvisory · Go
GHSA-hcff-qv74-7hr4 Gokapi has CSRF in Login Endpoint
MEDIUM
Official page ↗
- Aliases
- CVE-2026-29084
- Ecosystem
- Go
- Packages
- github.com/forceu/gokapi
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
- Weaknesses
- CWE-352
- Reviewed
- 2026-03-05
Affected packages
• Go github.com/forceu/gokapi: < 2.2.3 → fixed in 2.2.3
Description
Summary
The login flow accepts credential-bearing requests without CSRF protection mechanisms tied to the browser session context. The handler parses form values directly and creates a session on successful credential validation.
*Issue found by aisafe.io*
Impact
An attacker can force a victim browser into a session associated with an existing user account where the attacker knows the credentials, causing user confusion, activity misattribution, and potential misuse of trusted user actions.
Related
Alias · CVE (1)
- CVE-2026-29084 Gokapi is a self-hosted file sharing server with automatic expiration and encryption support. vulnerability
Weakness · CWE (1)
- CWE-352 Cross-Site Request Forgery weakness