Toxic squash syndrome, also known as cucurbit poisoning, is an illness caused by compounds found in cucumbers, melons, pumpkins, and squash, resulting in hair loss and food poisoning-like symptoms.