Bayern Munich extended its contract with 27-year-old goalkeeper Alexander Nubel until 2029, while keeping him on loan at Stuttgart for two additional seasons.