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
Wales' oldest yacht club it to open its doors to the public as part of the Welsh Government initiative 'Open Doors'.
Offences involving indecent images have almost trebled over the last three years in Wales.
The number of patients living in Wales whose lives were saved or improved because of an organ transplant has risen by 24% in the last year.