Upgrade to the fixed release for your branch: 18.8.4, 18.7.4, 18.6.6.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-2025-12073 (and the other 14 CVEs):Debian · Ubuntu · Red Hat · Alpine