Many spray paints will "smother" the pumpkin and prevent it from breathing. As the pumpkin decomposes, it will emit gases from the inside, potentially causing an explosion.