Upvote:3
According to IATA, you don't need a visa under if your transit is under 12 hours.
Passengers transiting through Dammam (DMM), Jeddah (JED) or Riyadh (RUH) with a confirmed onward ticket for a flight to a third country within 12 hours. They must stay in the international transit area of the airport and have documents required for the next destination.