
Cloud Vulnerability DB
コミュニティ主導の脆弱性データベース
CVE-2026-26196 is a credential exposure vulnerability in Gogs, an open-source self-hosted Git service, where the API accepts authentication tokens via URL query parameters (token and access_token), causing them to leak through server logs, browser history, and HTTP referrer headers. All Gogs versions prior to 0.14.2 are affected. The vulnerability was reported by researcher rezmoss, disclosed and patched on March 5, 2026. It carries a CVSS v3.1 score of 5.3 (Medium) and a CVSS v4.0 score of 6.9 (Medium) (GitHub Advisory).
The root cause is classified as CWE-598 (Use of GET Request Method With Sensitive Query Strings). In internal/context/auth.go, the Gogs API authentication logic first reads c.Query("token"), then falls back to c.Query("access_token"), and only checks the Authorization header if both query parameters are absent — meaning URL-based token authentication was a fully supported code path. Any API request made with tokens embedded in the URL (e.g., /api/v1/user?token=...) would expose those credentials in web server access logs, proxy logs, browser history, shell history, and Referer headers sent to third-party sites. The fix, implemented in PR #8177, removes the URL query parameter token lookup entirely, requiring tokens to be passed exclusively via the Authorization: token <value> header (GitHub Advisory, Patch Commit).
Successful exploitation allows an attacker who gains access to server logs, proxy logs, browser history, or referrer data to harvest valid API authentication tokens without requiring any privileges or user interaction. These harvested tokens can be reused until explicitly revoked to perform any API operation permitted to the token holder, including unauthorized repository access, data exfiltration, code modification, or other actions impersonating the affected user. There is no integrity or availability impact directly from the vulnerability itself, but the secondary misuse of stolen tokens could have significant consequences depending on the permissions associated with the compromised token (GitHub Advisory).
?token= or ?access_token= query parameters, e.g., GET /api/v1/user?token=abc123def456.Authorization header or directly in the URL: curl -H "Authorization: token abc123def456" https://gogs.example.com/api/v1/user/repos.?token= or ?access_token= query parameters (e.g., GET /api/v1/user?token=<value> or GET /api/v1/repos?access_token=<value>).Referer headers containing API URLs that include token query parameters..bash_history, .zsh_history) on systems where curl or similar tools were used with ?token= in Gogs API URLs.Upgrade Gogs to version 0.14.2 or later, which removes support for URL query parameter token authentication entirely and requires tokens to be passed via the Authorization: token <value> header (Gogs Release). Note that a further patch release 0.14.3 is available and is recommended as the upgrade target. For installations that cannot patch immediately: configure reverse proxies or WAFs to strip or reject API requests containing token or access_token query parameters; scrub query strings from access logs; set a strict Referrer-Policy header; and revoke any tokens that may have been exposed in logs or history. All existing API tokens should be considered potentially compromised and rotated if URL-based authentication was in use (GitHub Advisory).
ソース: このレポートは AI を使用して生成されました
無料の脆弱性評価
9つのセキュリティドメインにわたるクラウドセキュリティプラクティスを評価して、リスクレベルをベンチマークし、防御のギャップを特定します。
パーソナライズされたデモを見る
"私が今まで見た中で最高のユーザーエクスペリエンスは、クラウドワークロードを完全に可視化します。"
"Wiz を使えば、クラウド環境で何が起こっているかを 1 つの画面で確認することができます"
"Wizが何かを重要視した場合、それは実際に重要であることを私たちは知っています。"