Chipotle Mexican Grill shares rose Thursday, as an analyst at JPMorgan turned bullish on the stock.

Chipotle's food safety problems cost the company three years of earnings growth, according to analyst John Ivanko, but he sees more upside than downside. He upgraded the stock to overweight from a neutral rating, and increased its price target to $510 from $465.