The HepB vaccine protects against the hepatitis B virus. Hepatitis B can cause flu-like symptoms. If left untreated, it can cause scarring of the liver, liver failure, or liver cancer.