If you use Homebrew on MacOS, you're affected—do 'brew update' and 'brew upgrade’.
https://infosec.exchange/@wdormann/112179988525798247
Will Dormann (@[email protected])

Just a backdoor in XZ. Nothing important. https://www.openwall.com/lists/oss-security/2024/03/29/4

Infosec Exchange
@SteveBellovin The current version in brew is 5.4.6 on my M1 system. I'm sure there will be an upgrade soon.
@mvilain @SteveBellovin 5.4.6 is the version it downgrades to from 5.6.1, so you are likely up to date. as @jrose said, macos/M1 are not believed to be affected but better safe than sorry!