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
After a mostly dry evening with a few scattered showers, cloud and outbreaks of showery rain will spread northeast through the night.
Tributes have been paid to former Wales international Mel Charles, who has died at the age of 81.
Tablets - of the computing variety - could help help patients and doctors in Wales as part of a technology revamp.