A Cary High School student pleaded guilty Wednesday to spiking his science teacher's water bottle with acid.