Upgrade to the fixed release for your branch: 19.1.2, 19.0.4, 18.11.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-2025-12506 (and the other 7 CVEs):Debian · Ubuntu · Red Hat · Alpine