CVE-2026-29084
JSON

4.6medium

Gokapi: CSRF in Login Endpoint

Severity
4.6medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.08% (higher than 0% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-hcff-qv74-7hr4GO-2026-4624

Description

Gokapi is a self-hosted file sharing server with automatic expiration and encryption support. Prior to version 2.2.3, 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. This issue has been patched in version 2.2.3.

Affected

Product or packageVersionsReported by
Forceu Gokapi< 2.2.3, before 2.2.3CVE List, NVD
github.com/forceu/gokapi (Go)before 2.2.3, all versionsGitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M4.6medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
GitHub4.6medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
NVD4.6medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N

Classification

CWE-352

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Gokapi is a self-hosted file sharing server with automatic expiration and encryption support. Prior to version 2.2.3, 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. This issue has been patched in version 2.2.3.

GitHub Advisory Database
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.

Go Vulnerability Database

Gokapi has CSRF in Login Endpoint in github.com/forceu/gokapi.

NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.

(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)

The additional affected modules and versions are: github.com/forceu/gokapi before v2.2.3.

NVD (es)

Gokapi es un servidor de intercambio de archivos autoalojado con expiración automática y soporte de cifrado. Antes de la versión 2.2.3, el flujo de inicio de sesión acepta solicitudes que contienen credenciales sin mecanismos de protección CSRF vinculados al contexto de la sesión del navegador. El gestor analiza los valores del formulario directamente y crea una sesión tras la validación exitosa de las credenciales. Este problema ha sido parcheado en la versión 2.2.3.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-29084 changed 2026-03-06CVE Terms of Use
GitHub Advisory DatabaseGHSA-hcff-qv74-7hr4 changed 2026-03-23CC-BY-4.0
Go Vulnerability DatabaseGO-2026-4624 changed 2026-03-23CC-BY-4.0
NVDCVE-2026-29084 changed 2026-06-17Public domain