CVE-2026-26196
mediumpriority · track · 21EPSS 0.003 · 19 %ileDEEURUUSEPSS · scored 2026-10-27
Gogs is an open source self-hosted Git service. Prior to version 0.14.2, gogs api still accepts tokens in url params like token and access_token, which can leak through logs, browser history, and referrers. This issue has been patched in version 0.14.2.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–medium · 2.7–6.9
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (7)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2026-0623Gogs: Mehrere SchwachstellenDeutsch2026-03-05csaf · cert_bundDE
Ein Angreifer kann mehrere Schwachstellen in Gogs ausnutzen, um Daten zu manipulieren, Cross-Site-Scripting-Angriffe durchzuführen oder vertrauliche Informationen offenzulegen.
- GHSA-x9p5-w45c-7ffcGogs: Access tokens get exposed through URL params in API requests2026-03-05ghsa · osvUS
### Summary The Gogs API still accepts tokens in URL parameters such as `token` and `access_token`, which can leak through logs, browser history, and referrers. ### Details 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 ### Impact 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. ### Recommended Fix - 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. ### Remediation A fix is available at https://github.com/gogs/gogs/releases/tag/v0.14.2.
- GO-2026-4619Gogs: Access tokens get exposed through URL params in API requests in gogs.io/gogs2026-03-10vendor · osvUS
Gogs: Access tokens get exposed through URL params in API requests in gogs.io/gogs
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (13)
External citations — patches, advisories, analysis.
- https://github.com/gogs/gogs/commit/295bfba72993c372e7b338438947d8e1a6bed8fdcnnvd
- https://github.com/gogs/gogs/pull/8177cnnvd
- https://github.com/gogs/gogs/releasesPatchcnnvd
- https://github.com/gogs/gogs/releases/tag/v0.14.2cnnvd
- https://github.com/gogs/gogs/security/advisories/GHSA-x9p5-w45c-7ffccnnvd
- https://github.com/gogs/gogs/commit/295bfba72993c372e7b338438947d8e1a6bed8fdenisa_euvd
- https://github.com/gogs/gogs/pull/8177enisa_euvd
- https://github.com/gogs/gogs/releases/tag/v0.14.2enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan