Loading advisory.
Loading advisory.
Gogs: Access tokens get exposed through URL params in API requests
The Gogs API still accepts tokens in URL parameters such as token and access_token, which can leak through logs, browser history, and referrers.
Published 2026-03-05 18:49 UTC · Modified 2026-03-23 04:56 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| gogs.io/gogs | Go | <= 0.13.3 all versions | No patch yet | No command until a fix exists. |
The Gogs API still accepts tokens in URL parameters such as token and access_token, which can leak through logs, browser history, and referrers.
A static review shows that the API still checks tokens in the URL query before looking at headers:
internal/context/auth.go reads c.Query("token")
internal/context/auth.go falls back to c.Query("access_token")
internal/context/auth.go only checks the Authorization header when the query token is empty
internal/context/auth.go authenticates using that token and marks the request as token-authenticated
Token-authenticated requests are accepted by API routes through c.IsTokenAuth checks:
internal/route/api/v1/api.go
If tokens are sent in URLs such as /api/v1/user?token=..., they can leak in logs, browser or shell history, and referrer headers, and can be reused until revoked.
Authentication headers should be used exclusively for token transmission.
Token parameters should be blocked at the proxy or WAF level.
Query strings should be scrubbed from logs.
A strict referrer policy should be set.
A fix is available at https://github.com/gogs/gogs/releases/tag/v0.14.2.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.003 on 2026-11-24 to 0.005 on 2026-11-30, over 3 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.003 | first score | v2026.06.15 |
| 2026-11-26 | 0.005 | 0.003 | v2026.06.15 |
| 2026-11-30 | 0.005 | 0.005 | v2026.06.15 |