Ribéry started the season by winning the DFL-Supercup as Bayern defeated their arch-rival Borussia Dortmund 5–4 on penalties. On 1 October 2017, he sustained a knee injury in a 2–2 draw to Hertha BSC. On 2 December, Ribéry made his return to the pitch in a 3–1 victory over Hannover 96 and made a record for Bayern Munich's most Bundesliga appearances by a non-German with 235th appearance, overtaking former Bayern player and current sporting director Hasan Salihamidžić who had 234 appearances. He made another record of most competitive appearances by any non-German player for Bayern with 366 appearances in a 1–0 victory over 1. FC Köln, surpassing Hasan Salihamidžić's 365 appearances. Ribéry scored twice in a 6–0 home victory over Hamburger SV on 10 March 2018. On 7 May 2018, Ribéry again extended his contract with Bayern, until June 2019. He ended the season with six goals and five assists.