Infected blood, sperm (cum), and vaginal secretions contain the hepatitis B virus. It's a sexually transmitted infection (STI) that spreads through unprotected sexual contact. It's also spread by infected needles and syringes.