Closed cell foam insulation acts as a vapor barrier and does not absorb moisture; at the same time, the insulation prevents leakage
A vapour barrier is not necessary with closed-cell foam but with open-cell spray foam it is sometimes required. Any air that migrates though a building envelope will carry water vapour. … It is also vapour permeable, so any moisture in the property can escape through the insulation as it dries out.