The vaccines currently in use are very safe and sterile.
I have never personally encountered a vaccine that was contaminated. Rare infections can occur at the site of a vaccination, but the germs causing the infections are those found on the skin, which is why we clean the skin with alcohol
before giving vaccines. I got this type of infection from a vaccine recently, but it is easily treated.