It's not just due to energy, at least not directly. Core CPI (ex-food and energy) has been increasing monotonically since February:
https://fred.stlouisfed.org/series/CPILFENS#