Question: What is the ruling on blood in the mouth while fasting?
Answer: If one bleeds from the mouth and the blood is swallowed, and the blood is more than or equal to the saliva, the fast is broken. If the blood is less than the saliva but its taste is noticed in the throat, the fast is broken. If the blood is less than the saliva and its taste is not noticed in the throat, the fast is not broken.
(Ad-Durr al-Mukhtār, Kitāb aṣ-Ṣawm, vol. 3, p. 422).