Oil prices held near recent highs on Wednesday as traders assessed the risk of supply disruption following military strikes and attacks on tankers near the Strait of Hormuz.