Could be a serious bacterial infection, but you need a vet to diagnose (& treat, if you want to help snake recover). I've never seen such a thing in any of my
snakes though...this is just my best guess...good luck & do let know? I'd say this is urgent.