In a statement on Cwmcarn High School's website, headteacher Jacqui Peplinski said "concerns were dealt with swiftly".
"There was no risk to any staff or learner and the relevant support services were contacted as a precautionary measure."
"Cwmcarn High is a caring and safe environment and we are committed to everyone’s safety."
More top news
The owner of a bar and cafe in Cardiff has been fined for failing to display its food hygiene rating.
Wales wing George North has been referred to an independent expert and won't play for his club until he's had a head assessment.
The international tests measuring how well our children are perform in reading, maths and science show we're once again the worst in the UK.