Closed-cell spray foam is impermeable to water, making it resistant to mold growth. Open-cell foam, while more permeable, also significantly reduces the likelihood of mold as it doesn’t retain water.