Yellow vaginal discharge can have many causes, including viral, bacterial, and sexually transmitted infections (STIs). It may indicate an infection if it is dark yellow, greenish, or has a foul odor.