Safe mode has been removed from LilyPond as of version 2.23.12. LilyPond files can run arbitrary code. Please sandbox your LilyPond installation using Shellbox and set $wgScoreSafeMode = false.