Upgrade to the fixed release for your branch: 2.11.5, 2.11.4.Vendor announcement
Restart Caddy after replacing the binary (a reload keeps the old binary). Rebuild custom xcaddy builds.
Using distro packages? Distros backport fixes under their own version numbers. Check your distro's status for CVE-2026-77281:Debian · Ubuntu · Red Hat · Alpine