Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. code.gitea.io/gitea
  4. ›
  5. CVE-2026-58511

CVE-2026-58511: Gitea: Webhook Authorization Header Returned in Plaintext via API

July 21, 2026

The ToHook() function in services/webhook/general.go decrypts the webhook’s HeaderAuthorizationEncrypted field and returns the plaintext authorization header in the API response. Any repository admin can read the full plaintext value of webhook authorization headers (Bearer tokens, Basic auth credentials, API keys) set by other admins.

The authorization header is stored encrypted in the database using the server’s SecretKey, but ToHook() decrypts it before serializing it into the API response — converting a write-only secret into a readable credential.

References

  • github.com/advisories/GHSA-3r5c-2xxx-h872
  • github.com/go-gitea/gitea/releases/tag/v1.27.0
  • github.com/go-gitea/gitea/security/advisories/GHSA-3r5c-2xxx-h872
  • nvd.nist.gov/vuln/detail/CVE-2026-58511

Code Behaviors & Features

Detect and mitigate CVE-2026-58511 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.27.0

Fixed versions

  • 1.27.0

Solution

Upgrade to version 1.27.0 or above.

Impact 2.7 LOW

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

go/code.gitea.io/gitea/CVE-2026-58511.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:17:27 +0000.