Wagner was also part of the 2017 FIFA Confederations Cup squad that won the tournament. His first and only appearance came on 19 June in the opening Group B match against Australia, missing several good chances to score as Germany won 3–2. After that, he was benched in favour of Timo Werner and Lars Stindl as Germany defeated Chile 1–0 in the final. Wagner finished 2017 by scoring against Northern Ireland and Azerbaijan.