Gitea 28.4.0 upgrade: many security fixes, no breaking changes

released
lab run
upgraded from
28.3.0
guest
Ubuntu 26.04 VM
tested
yes, in our lab

Summary

Gitea 28.4.0 is a bugfix release with one enhancement (better websocket client synchronization) and 38 bug fixes. Many of them are hardening: missing permission checks in several handlers, a TOTP attempt limit per account, hidden org roles for non-members, and no reuse of pull mirror credentials for a new host. It also fixes two deadlocks (language stats and issue notifications) and updates Alpine packages in the Docker images.

Breaking changes and deprecations

The release notes list none. Two behaviour changes are worth knowing about (reported in the notes, not tested by us):

  • Failed TOTP attempts are now limited per account.
  • The Owners team can no longer be renamed through the API.

Tested in our lab

We upgraded a Docker install (SQLite) from 28.3.0 to 28.4.0. Before the upgrade we created an admin user, a repository, one issue, and pushed one extra commit over HTTP. We stopped the container with docker compose down, changed the image tag and started it again.

After the upgrade:

  • The API reported version 28.4.0 and the web UI answered with HTTP 200.
  • The issue and both commits were still there, and a fresh git clone returned the pushed file.
  • The container logs contained no lines matching error, panic or fail.

We did not test the individual fixes, TOTP limiting, Actions, packages or mirrors.

Lab log

$ curl -s localhost:3000/api/v1/version
{"version":"28.3.0"}
$ docker compose down
[...]
 Container gitea-server-1  Removed
$ docker compose pull
[...]
$ docker compose up -d
[...]
 Container gitea-server-1  Started
$ curl -s localhost:3000/api/v1/version
{"version":"28.4.0"}
$ curl -s -o /dev/null -w "%{http_code}\n" localhost:3000/
200
$ curl -s -u lab:[redacted] localhost:3000/api/v1/repos/lab/demo/commits | grep -o "\"message\":\"[^\"]*\""
"message":"add f\n"
"message":"Initial commit\n"
$ git clone -q http://lab:[redacted]@localhost:3000/lab/demo.git /tmp/c2 && ls /tmp/c2
README.md
f.txt
$ docker compose logs 2>&1 | grep -ciE "error|panic|fail"
0

Reported by others

We did not look for user reports for this release. The details above come from the release notes.

Verdict

Upgrade now. It includes many security and permission fixes, the notes list no breaking changes, and our simple upgrade from 28.3.0 worked. Back up your data first, as always. If you rely on Actions, packages or pull mirrors, check them after upgrading, because we did not test those.

sources

other Gitea releases