Sinusitis arises from the inflammation of the sinuses with a viral, bacterial, or fungal infection. Many people think that a yellow or green nasal discharge means a bacterial infection, which requires antibiotics but it is not true. It can be a sign that your body is being attacked by either a bacteria or a virus. That said, a yellow discharge does not necessarily indicate a sinus infection.