A United Airlines flight bound for Spain from Newark Liberty International Airport turned around midflight Saturday due to a possible security threat.

The flight departed around 6 p.m. for Palma de Mallorca, Spain, but landed back at Newark at 9:37 p.m., according to the Port Authority of New York and New Jersey. The airline said there were 190 passengers and 12 crew members on board the Boeing 767 aircraft.