Upgrade to the fixed release for your branch: 19.0.1, 18.11.4, 18.10.7, 18.9.8, 18.8.10, 18.7.7, 18.6.8, 18.5.7.Vendor announcement
Self-managed only (GitLab.com is patched by GitLab). Follow the upgrade path: you may need intermediate versions.
Using distro packages? Distros backport fixes under their own version numbers. Check your distro's status for CVE-2026-1402 (and the other 6 CVEs):Debian · Ubuntu · Red Hat · Alpine