One infection known to cause brain cysts is cysticercosis.
Cysticercosis: A Leading Cause
Cysticercosis is caused by the larvae of the Taenia solium tapeworm. According to the provided reference, this infection occurs when a person swallows tapeworm eggs. The larvae then migrate to various tissues, including the brain, muscle, and eyes, where they form cysts called cysticerci. These cysts in the brain can lead to neurocysticercosis, a significant cause of seizures and other neurological problems worldwide.