The forward is expected to be ready before the start of the 2023-24 season.
Dvorak has not played since sustaining a lower-body injury during Montreal's 4-3 shootout loss to the Carolina Hurricanes on March 7.
The Canadiens (27-35-6) are 16 points behind the New York Islanders for the second wild card into the Stanley Cup Playoffs from the Eastern Conference with 14 games remaining, including at the Florida Panthers on Thursday.
The 27-year-old had 28 points (10 goals, 18 assists) in 64 games this season, his second with Montreal since being acquired in a trade with the Arizona Coyotes for two draft picks, including a first-round selection in the 2022 NHL Draft, on Sept. 4, 2021.
Selected by the Coyotes in the second round (No. 58) of the 2014 NHL Draft, Dvorak has 207 points (88 goals, 119 assists) in 422 games with Arizona and Montreal.