There is a vaccine against polio that can infect and immunize others. It uses a live polio virus genetically modified to not cause severe disease.
"The OPV is less expensive and easier to administer, and can spread immunity beyond the person vaccinated, creating contact immunity. It has been the predominant vaccine used. However, under conditions of long-term vaccine virus circulation in under-vaccinated populations, mutations can reactivate the virus..."
"The OPV is less expensive and easier to administer, and can spread immunity beyond the person vaccinated, creating contact immunity. It has been the predominant vaccine used. However, under conditions of long-term vaccine virus circulation in under-vaccinated populations, mutations can reactivate the virus..."
from https://en.wikipedia.org/wiki/Polio_eradication