A clogged drain hose can cause the humidifier to overflow. You can try to use compressed air to clear any obstruction, but the drain hose may have to be replaced with a new one to fully resolve the issue.
Highly Likely
02 - Water Evaporator Pad
Flow-through style humidifiers channel the water through a vertical water evaporator pad. If the water evaporator pad is clogged with calcium or other mineral deposits, the water will ride along the top of the pad and drip down outside of the water collection tray at the bottom. If water does not exit properly check the water evaporator pad and replace as needed.
A drum style humidifier will use a float to regulate the amount of water entering the humidifier. When the tray fills with water to a certain point, the float will rise up and shut off the water. A damaged float may not be able to shut off the water, resulting in the humidifier overflowing. Inspect the float to determine if it is obstructed or damaged and replace if necessary.
If the water evaporator pad is clogged or damaged it will need to be replaced. The water evaporator pad should be replaced at least once a year but may need replacing every 3 to 6 months depending on the water hardness. Refer to your owner's manual for guidance.
Less Common
05 - Clogged Distribution Tray
The water distribution tray is at the top of the humidifier and helps to distribute the water evenly over the evaporator pad. If the holes in the tray get clogged, water can overflow the tray. Check to see if the holes in the tray are clear or need to be cleaned. Refer to your owners manual for guidance.