GHSA-hcff-qv74-7hr4

Suggest an improvement
Source
https://github.com/advisories/GHSA-hcff-qv74-7hr4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-hcff-qv74-7hr4/GHSA-hcff-qv74-7hr4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-hcff-qv74-7hr4
Aliases
Published
2026-03-05T20:43:28Z
Modified
2026-03-23T04:56:10.262397802Z
Severity
  • 4.6 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N CVSS Calculator
Summary
Gokapi has CSRF in Login Endpoint
Details

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.

Database specific
{
    "github_reviewed": true,
    "github_reviewed_at": "2026-03-05T20:43:28Z",
    "nvd_published_at": "2026-03-06T05:16:41Z",
    "severity": "MODERATE",
    "cwe_ids": [
        "CWE-352"
    ]
}
References

Affected packages

Go / github.com/forceu/gokapi

Package

Name
github.com/forceu/gokapi
View open source insights on deps.dev
Purl
pkg:golang/github.com/forceu/gokapi

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.2.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-hcff-qv74-7hr4/GHSA-hcff-qv74-7hr4.json"