Trey Lance (AP Photo/Tony Avelar)

According to Ian Rapoport of the NFL Network, the San Francisco 49ers are "firmly committed to him" despite the fact that he could miss the rest of the season.

The second-year player will be out for four to six months after breaking his fibula and tearing his ankle.

Lance suffered the season-ending injury Sept. 18 during the Niners' Week 2 win over the Seattle Seahawks and underwent surgery the following day.

Trey Lance @treylance09

Truly appreciate all of the messages and prayers. Surgery was a success and I am ready to attack this rehab process. We will never understand why, but I trust that it’s all a part of His plan. I will be back better than ever. This chapter is going to make the story even greater! pic.twitter.com/l5hoBWsLDw

The 2021 first-round pick took over the offense from veteran Jimmy Garoppolo to open the 2022 season after spending much of his rookie campaign in a reserve role.

He's tallied six total touchdowns (five passing and one rushing) in eight career games (four starts).

Garoppolo, who spent much of the offseason involved in trade rumors before staying in San Francisco, will lead the offense for the remainder of the season. Brock Purdy will step into the backup role.

Lance, 22, still has an opportunity to establish himself as the 49ers' franchise quarterback in the years ahead, especially since his dual-threat playmaking ability is an ideal fit for the modern game. He's still very much in the development phase, though.

✨ Watch more top videos, highlights, and B/R original content

Garoppolo is set to become a free agent in the off-season, but the veteran can use this year as an opportunity to get another team's attention. It would clear the way for a Lance to take over in the future.