Could also be the start of an internal ruptured blood vessel.
Happens sometimes, especially if you are too rough with your cock. If you notice the cum going a slightly rusty colour, you may want to ease up on it for a few days. It will heal itself. However, if after a week it's still yellow, try to go to the doctor.