Upgrade to the fixed release for your branch: 1.19.5, 1.18.11, 1.17.17.Vendor announcement
Using distro packages? Distros backport fixes under their own version numbers. Check your distro's status for CVE-2026-56742 (and the other 1 CVE):Debian · Ubuntu · Red Hat · Alpine