Cruise passengers were told to stay alert as they sailed through waters known for piracy.