Upgrade to the fixed release for your branch: 18.8.1, 18.7.1, 18.6.2.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-1868:Debian · Ubuntu · Red Hat · Alpine