I was told that due to USA rules where if standard Formaldehyde glue is used in new builds there must be a warning to its occupants. As a result much MDF is now non Formaldehyde based.
If you get waterproof MDF then you're pretty safe as that doesn't contain Formaldehyde resin.