Your body's defence against pathogens, your immune system, is compromised when you have diabetes, which increases your risk of developing infections like thrush. Candida albicans is a fungus that causes the infection known as thrush. It's also known as a yeast infection or candidiasis. Anyone can acquire it.