SPSS patch log4j for macOS
This page has patch files for SPSS 25-28.
Download and open the SPSS-XX-patch.dmg that matches the version of SPSS you have installed.
Look in the Applications folder to determine wich version you have, like /Applications/IBM SPSS Statistics 27/
SPSS 28 has no version number in its application folder.