The schoolchildren needed medial treatment after coming out in rashes following an allergic reaction to the toxic insect.
A school spokesperson said none of the cases were serious.
Council workers have removed the caterpillar nests from the school grounds.