Upgrade to the fixed release for your branch: 19.4.1, 19.3.3, 19.2.7, 19.0.9, 18.11.12.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-10518 (and the other 12 CVEs):Debian · Ubuntu · Red Hat · Alpine
This is exploited in the wild: after patching, check exposed systems for signs of compromise.