A cold or flu may cause your sinus and nasal linings to swell. Sinus openings can become blocked. This causes mucus to back up. This backed-up mucus becomes an ideal place for bacteria to grow. Thick, yellow, or discolored mucus is one sign of infection.