During carotid endarterectomy, the vagus nerve may be temporarily blocked or stimulated to help monitor and protect the vocal cords and prevent damage during surgery.