A dead starfish can decompose quickly and release toxins that can harm your fish and other aquatic life in the tank. Additionally, the starfish may also introduce harmful bacteria or parasites into the tank.
If you want to add a starfish to your fish tank, it is important to purchase a live one from a reputable aquarium store.