Minecraft wiki entry for Cactus, associated text: When any entity, including players and mobs, touches a cactus, 1 damage is taken every 0.5 seconds. Damage from touching a cactus is reduced by armor, but touching it also damages the armor. Mobs do not avoid cacti when they pathfind.