Technically, no, skiplagging isn't illegal. You're not breaking any laws by doing it. You won't get arrested or face legal action from authorities for using this strategy. But, most airlines ban the practice in their terms and conditions, which everyone agrees to when they purchase a ticket.