Unsafe exposure to non-sterilized needles (i.e. accidental needle stick, body piercing, tattoo, electrolysis, acupuncture) can lead to infections and diseases. Full disclosure of any needle exposure, even if deemed safe, is very important to allow for informed decision-making.
Please consult with a healthcare provider regarding donating breastmilk in case of exposure to non-sterilized needles. It may also be wise to have a complete round of blood work done after exposure and within three months.
Please see How can breastmilk be pasteurized at home? for more information on heat-treating and pathogens.