Some memory foam mattresses contain toxic chemicals such as formaldehyde, benzene, and naphthalene. Memory foam may contain isocyanates, which, according to the Occupational Safety and Health Administration, can cause irritation of the eyes, nose, throat, and skin.