This question already has an answer here:
I'm travelling from Madrid to Brisbane, but I have a 9 hours layover at Dubai Airport. I do not plan to leave the airport, and the connection is with the same airline (Emirates). I'm from El Salvador.
Do I need a transit visa?