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
They took their seven month-old infant from a contact centre in Pontypridd on Monday without the consent of the local authority.
Commons Seaker John Bercow has rejected the Government's request to table a so-called meaningful vote on Boris Johnson's Brexit deal.
It follows a letter written by Boris Johnson where he was legally obliged to ask for an extension in Brexit talks - but did not sign it.