Edit(2023-11-18): the fix has reached all unstable branches and no mitigations are necessary now.
PSA for #NixOS users: nixpkgs-unstable currently ships with the sudo module disabled due to a regression that was spotted slightly late. It's fixed in master but will take a bit to reach the nixpkgs-unstable branch. The fix is trivial but if you upgrade without it there is a chance you are locked out fully.